Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
hive ddl 脚本的文件扩展名是否有公认的约定?我纯粹是出于代码组织的目的,所以当我将脚本保存在我的存储库中时,很明显脚本在 Hive 中。
Apache Hive 项目的标准是使用 .q
您可以在此处查看示例
阿帕奇SVN
hive/trunk/ql/src/test/queries/clientpositive/bucketmapjoin6.q
您可以使用任何扩展来运行配置单元脚本。例如
hive -f scriptname.sh
但是使用 .hql 是最佳做法,这样您就可以将此文件与其他文件区分开来。