Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
When use below sql to update table:
UPDATE IUD_table2 a SET (a.IUD_table2_country, a.IUD_table2_salary) = (select b.IUD_table1_country, b.IUD_table1_salary from IUD_table1 b where b.IUD_table1_id = 8) WHERE a.IUD_table2_id < 6 or a.IUD_table2_id > 15
It will throw out exception:
Exception in thread "main" org.apache.spark.sql.AnalysisException: == Parse1 == mismatched input '.' expecting <EOF>(line 2, pos 1) == SQL == select select b.IUD_table1_country, b.IUD_table1_salary from IUD_table1 b where b.IUD_table1_id = 8 from iud_table2 a -^^^ == Parse2 == [1.1] failure: identifier matching regex (?i)ALTER expected select select
Attachments
Issue Links
- links to