GitHub user tsingfu opened a pull request:
https://github.com/apache/spark/pull/3501
[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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tsingfu/spark SPARK-4528
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3501.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3501
----
commit 390aaf2b348bdc70bcfd1fa2a64c8b481deafa6f
Author: tsingfu <[email protected]>
Date: 2014-11-26T10:01:24Z
[SparkSQL][SPARK-4528] add comment support for Spark SQL CLI spark-sql
commit 7a9681640e6059bc22686cbd01f2f9c7d1199153
Author: tsingfu <[email protected]>
Date: 2014-11-27T08:51:18Z
[SparkSQL][SPARK-4528] modify function filterComment to make code more
concise
commit 8b8d343d30e6d3c8546622a06e0e05cec4d9e33a
Author: tsingfu <[email protected]>
Date: 2014-11-27T11:51:39Z
[SparkSQL][SPARK-4528] add case class CommentMark to make code more concise
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]