I am using Spark 2.4 and running below query,
select ID from WEB_TBL where ID NOT LIKE '%-%'
This query is giving proper output in Spark-shell but when I am running through Java class, its throwing below error.
ERROR ApplicationMaster: User class threw exception: java.util.MissingFormatWidthException: %-%
IS there something we need to do, while running spark-submit to execute this query. or can anyone suggest alternative for this query