Is there an accepted convention for a file extension for a hive ddl script? I am purely asking for code organization purpose, so that when I save the script in my repository it is obvious the script is in Hive.
The standard at Apache Hive project is to use .q
You can see examples here
Apache SVN
hive/trunk/ql/src/test/queries/clientpositive/bucketmapjoin6.q
you can use any extension to run hive scripts. for example
hive -f scriptname.sh
but using .hql is is the best practice so that you can differentiate this file from other files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With