S02012
错误代码
S02012
报错信息
Not support to create temporary table whose name has already been used. RefId:S02012
错误原因
在 2.00.10 之前的版本(不包括 2.00.10)中,不支持使用 with as 定义的临时变量与脚本中其他变量重名。
2.00.10 及以后的版本不存在这个问题。
如下是一个导致报错的例子, with 后的别名 t1 与脚本定义的 t1 变量重名:
t1 = 1
t2 = table(1..3 as id)
with t1 as (select * from t2) select * from t1
解决办法
对于 2.00.10 之前的版本,检查是否有 with as 定义临时变量的名字与脚本中其他变量重名的情况。
