💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
将`max_comp_id`变量接收到的值传递到`hive_script.hql`文件 `vi testhive.sh` ~~~ #!/bin/bash max_comp_id=$(hive -e "set hive.cli.print.header=false; select max(comp_id) from ods_tradecn_trade_company;") hive -hiveconf "max_comp_id"="$max_comp_id" -f ./hive_script.hql ~~~ `vi hive_script.hql` 创建脚本 ~~~ select * from ods_tradecn_trade_company where comp_id='${hiveconf:max_comp_id}'; ~~~