byzer-lang icon indicating copy to clipboard operation
byzer-lang copied to clipboard

Byzer 中 load/save 语句无法支持以绝对路径的方式来进行加载数据

Open ZhengshuaiPENG opened this issue 2 years ago • 0 comments

当前 byzer 在执行 load 语句时,比如

SET dataPath="/tmp/path"
LOAD parquet.`${dataPath}` as tab;

实际这个 /tmp/path 并非是绝对路径,而是在 Byzer 存储系统工作目录上的按用户隔离的目录, 真实的路径为 /${user_name}/tmp/path , 其中 ${user_name} 是执行该脚本的用户,是由系统直接进行拼接而成的, 所以在上述示例中 /tmp/path 的真实路径其实是 /${user_name}/tmp/path

这样带来的问题是 byzer 的 load/save 语句的设计,无法支持绝对路径

ZhengshuaiPENG avatar Jul 19 '22 10:07 ZhengshuaiPENG