Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standard file extension for hive ddl script?

Tags:

ddl

hive

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.

like image 916
user1659030 Avatar asked Apr 05 '13 14:04

user1659030


2 Answers

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

like image 86
user2230605 Avatar answered Sep 24 '22 00:09

user2230605


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.

like image 39
Balaswamy Vaddeman Avatar answered Sep 23 '22 00:09

Balaswamy Vaddeman