【发布时间】:2022-10-05 16:46:54
【问题描述】:
%sql
with temp1 as
(
select req_id from table1 order by timestamp desc limit 8000000
)
update table1 set label = \'1\' where req_id in temp1 and req_query like \'%\\<\\/script\\>%\'
update table1 set label = \'1\' where req_id in temp1 and req_query like \'%aaaaa%\'
update table1 set label = \'1\' where req_id in temp1 and req_query like \'%bbbb%\'
收到错误:
com.databricks.backend.common.rpc.DatabricksExceptions$SQLExecutionException:org.apache.spark.sql.catalyst.parser.ParseException: 不匹配的输入 \'in\' 期望 {, \';\'}(第 6 行,第 93 行)
有人可以建议吗?问数据库同样的问题会更便宜吗?
select req_id from table1 order by timestamp desc limit 8000000
标签: sql apache-spark apache-spark-sql common-table-expression delta-lake