我正在学习本教程:https://docs.snowflake.net/manuals/user-guide/data-load-external-tutorial-resolve.html
尝试并‘按查询ID返回错误并将结果保存到表中以供将来参考’
错误是“文件(11)中的列数与相应表(10)中的列数不匹配,请使用文件格式选项error_on_column_count_mismatch=false忽略此错误”
这与教程相匹配,所以根据教程,我会找到查询ID,并将其输入到以下语句中的query_id占位符:
create or replace table save_copy_errors as select * from table(validate(mycsvtable, job_id=>'<query_id>'));但是它并不保存错误,而是返回一个新的错误,即:
002018 (22023): SQL compilation error:
Invalid argument [Invalid Job UUID provided.] for table function. Table function
argument is required to be a constant.我不确定如何解决这个问题,因为我觉得我只是正确地照搬了教程
发布于 2019-08-06 14:52:50
这个教程对我很有效。您是否从web界面历史记录选项卡中获取了查询id?你确定它是正确的吗?您还可以使用以下查询从sql工作表的历史记录视图中查询它:
select query_id, query_text
from table(information_schema.query_history_by_session())
where query_type='COPY'
order by start_time desc limit 10;确保从COPY命令行( query _type='COPY')获取查询id,并在copy命令和validate函数参数中指定相同的表名称(必要时指定+schema)。
https://stackoverflow.com/questions/57369205
复制相似问题