I know that we can make a single line comment with '--' in hiveQL(hive.sql scripts) but is there a way to make multi line comments? I need something like below
/* This sentence is
a comment */
No, Multi-line comments are not supported in Hive.
setComment("Some comment here"); and you will see something like the following in your MySQL log file (if you're using MySQL): 5998 Query /* Some comment here */ select ..... +1 For the nice tip!
As per my knowledge, multi-line comments are not supported in Hive scripts as of now. Seems like this JIRA introduced only single line comments, starting with -- in Hive 0.8
No, As of now Hive support single line comment only.
Hive, Pig, Hbase are starting stage not implemented like Mangodb, Cassandra, but in next version especially for Hadoop 2.x it's possible multiple comments also.
Just use -- two dashes to make a comment in hive.
Multi-line (aka "bracketed") comments should be available in Hive v2.3.0: https://issues.apache.org/jira/browse/HIVE-15765
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