apache/spark — pull request #3501 by tsingfu (2014-11-28 01:31:30+00:00)
Title: [SPARK-4528][SQL] add comment support for Spark SQL CLI 

The relative JIRA: https://issues.apache.org/jira/browse/SPARK-4528?filter=-2

While using *spark-sql*, found it does not support comment while write sqls.
**Comment support** is widely using in many projects, it is a necessary to add this feature.
Added one function *filterComment()* in the source org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.scala.
##### three comment styles supported:
1. From a '#' character to the end of the line.
2. From a '--' sequence to the end of the line
3. From a /* sequence to the following */ sequence, as in the C programming language.
This syntax allows a comment to extend over multiple lines because the beginning and closing sequences need not be on the same line.