有没有任何选项可以在Presto CLI上提供参数?Presto CLI上的Presto中的参数化SQL
我正在尝试将我的impala-shell命令更改为Presto,其中我的HQL文件从下面的impala命令行获取参数。在急
impala-shell -f ot_full.hql --var=date_next=${date_next_para} --var=yrmth=${yrmth_para} --var=yrmth_L12=${yrmth_L12_para} --var=pyrmth=${pyrmth_para}
WITH
条款是没有那么多的帮助。
我们如何将它转换为Presto命令行。
我没有找到https://prestodb.io/docs/current/
也许没有多大用处的,但什么用'sed'注射参数:约'猫ot_full.hql | sed -e“s/date_next/$ {date_next_para} /”.. | presto-cli'? –