yuanoOo opened a new issue, #13959:
URL: https://github.com/apache/dolphinscheduler/issues/13959

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   When I upgraded DolphinScheduler from 2.0.5 to 3.1.5 and tried to run a 
Data-Quality task, I got the following error:
   
   ```
   [INFO] 2023-04-18 11:48:37.550 +0800 -  -> 2023-04-18 11:48:36,553 INFO 
session.SessionState: Created HDFS directory: 
/tmp/hive/hadoop/a1886b9d-2178-4863-a060-777c97a8e0c7/_tmp_space.db
        2023-04-18 11:48:36,555 INFO client.HiveClientImpl: Warehouse location 
for Hive client (version 1.2.2) is /user/hive/warehouse
        Exception in thread "main" 
org.apache.spark.sql.catalyst.parser.ParseException: 
        extraneous input '@' expecting <EOF>(line 1, pos 56)
        
        == SQL ==
        SELECT * FROM test_test01 WHERE (id is null or id = '') @
        --------------------------------------------------------^^^
        
                at 
org.apache.spark.sql.catalyst.parser.ParseException.withCommand(ParseDriver.scala:241)
                at 
org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parse(ParseDriver.scala:117)
                at 
org.apache.spark.sql.execution.SparkSqlParser.parse(SparkSqlParser.scala:48)
                at 
org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parsePlan(ParseDriver.scala:69)
                at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:643)
                at 
org.apache.dolphinscheduler.data.quality.flow.batch.transformer.SqlTransformer.transform(SqlTransformer.java:60)
                at 
org.apache.dolphinscheduler.data.quality.execution.SparkBatchExecution.executeTransformer(SparkBatchExecution.java:112)
                at 
org.apache.dolphinscheduler.data.quality.execution.SparkBatchExecution.execute(SparkBatchExecution.java:53)
                at 
org.apache.dolphinscheduler.data.quality.context.DataQualityContext.execute(DataQualityContext.java:62)
                at 
org.apache.dolphinscheduler.data.quality.DataQualityApplication.main(DataQualityApplication.java:70)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at 
org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
                at 
org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:845)
                at 
org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
                at 
org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
                at 
org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
                at 
org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:920)
                at 
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929)
                at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
        2023-04-18 11:48:37,411 INFO spark.SparkContext: Invoking stop() from 
shutdown hook
        2023-04-18 11:48:37,420 INFO server.AbstractConnector: Stopped 
Spark@267517e4{HTTP/1.1,[http/1.1]}{0.0.0.0:4040}
        2023-04-18 11:48:37,423 INFO ui.SparkUI: Stopped Spark web UI at 
http://zk-bi-hdp03:4040
        2023-04-18 11:48:37,433 INFO cluster.YarnClientSchedulerBackend: 
Interrupting monitor thread
        2023-04-18 11:48:37,464 INFO cluster.YarnClientSchedulerBackend: 
Shutting down all executors
        2023-04-18 11:48:37,466 INFO 
cluster.YarnSchedulerBackend$YarnDriverEndpoint: Asking each executor to shut 
down
        2023-04-18 11:48:37,471 INFO cluster.SchedulerExtensionServices: 
Stopping SchedulerExtensionServices
        (serviceOption=None,
         services=List(),
         started=false)
        2023-04-18 11:48:37,475 INFO cluster.YarnClientSchedulerBackend: Stopped
        2023-04-18 11:48:37,530 INFO spark.MapOutputTrackerMasterEndpoint: 
MapOutputTrackerMasterEndpoint stopped!
        2023-04-18 11:48:37,548 INFO memory.MemoryStore: MemoryStore cleared
        2023-04-18 11:48:37,548 INFO storage.BlockManager: BlockManager stopped
   ```
   
   ### What you expected to happen
   
   The Data-Quality task should run to completion without errors.
   
   ### How to reproduce
   
   1、Upgrade DolphinScheduler from version 2.0.5 to version 3.1.5. 
   2、Using PostgreSQL as the metadata database.
   3、Run a Data-Quality task.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to