我正在尝试插入现有表,但收到不正确的语法错误:
陈述:
vc.sql("insert into table HIST_TEMP values (0, 'AAA','2010-06-01', 30.5, 12.0)")
错误:
org.apache.spark.sql.SapParserException:第 1 行或第 36 列附近的语法错误
插入表 HIST_TEMP 值 (0, 'AAA','2010-06-01', 30.5, 12.0)
在 org.apache.spark.sql.SapSqlParser$.parse(SapSqlParser.scala:176)
桌子:
vc.sql(s"""
CREATE TABLE HIST_TEMP(
INSTRUMENT_ID INT,
TRADING_SYMBOL VARCHAR(5),
TRADE_DATE DATE,
CLOSE_PRICE DOUBLE,
SPLIT_FACTOR DOUBLE)
USING com.sap.spark.vora
OPTIONS (tableName "HIST_TEMP",
hosts "$vHost",
zkurls "localhost:2181") """)