spark-instrumented-optimizer/dev/audit-release
Michael Armbrust 236dfac676 [SPARK-2784][SQL] Deprecate hql() method in favor of a config option, 'spark.sql.dialect'
Many users have reported being confused by the distinction between the `sql` and `hql` methods.  Specifically, many users think that `sql(...)` cannot be used to read hive tables.  In this PR I introduce a new configuration option `spark.sql.dialect` that picks which dialect with be used for parsing.  For SQLContext this must be set to `sql`.  In `HiveContext` it defaults to `hiveql` but can also be set to `sql`.

The `hql` and `hiveql` methods continue to act the same but are now marked as deprecated.

**This is a possibly breaking change for some users unless they set the dialect manually, though this is unlikely.**

For example: `hiveContex.sql("SELECT 1")` will now throw a parsing exception by default.

Author: Michael Armbrust <michael@databricks.com>

Closes #1746 from marmbrus/sqlLanguageConf and squashes the following commits:

ad375cc [Michael Armbrust] Merge remote-tracking branch 'apache/master' into sqlLanguageConf
20c43f8 [Michael Armbrust] override function instead of just setting the value
7e4ae93 [Michael Armbrust] Deprecate hql() method in favor of a config option, 'spark.sql.dialect'
2014-08-03 12:28:29 -07:00
..
blank_maven_build SPARK-1996. Remove use of special Maven repo for Akka 2014-06-21 23:29:57 -07:00
blank_sbt_build SPARK-1996. Remove use of special Maven repo for Akka 2014-06-21 23:29:57 -07:00
maven_app_core SPARK-1996. Remove use of special Maven repo for Akka 2014-06-21 23:29:57 -07:00
sbt_app_core [SPARK-1981] Add AWS Kinesis streaming support 2014-08-02 13:35:35 -07:00
sbt_app_ganglia SPARK-1996. Remove use of special Maven repo for Akka 2014-06-21 23:29:57 -07:00
sbt_app_graphx SPARK-1996. Remove use of special Maven repo for Akka 2014-06-21 23:29:57 -07:00
sbt_app_hive [SPARK-2784][SQL] Deprecate hql() method in favor of a config option, 'spark.sql.dialect' 2014-08-03 12:28:29 -07:00
sbt_app_kinesis [SPARK-1981] Add AWS Kinesis streaming support 2014-08-02 13:35:35 -07:00
sbt_app_sql [SPARK-2739][SQL] Rename registerAsTable to registerTempTable 2014-08-02 18:27:04 -07:00
sbt_app_streaming SPARK-1996. Remove use of special Maven repo for Akka 2014-06-21 23:29:57 -07:00
.gitignore Merge pull request #565 from pwendell/dev-scripts. Closes #565. 2014-02-08 23:13:34 -08:00
audit_release.py [SPARK-1981] Add AWS Kinesis streaming support 2014-08-02 13:35:35 -07:00
README.md [SPARK-1342] Scala 2.10.4 2014-04-01 18:35:50 -07:00

Test Application Builds

This directory includes test applications which are built when auditing releases. You can run them locally by setting appropriate environment variables.

$ cd sbt_app_core
$ SCALA_VERSION=2.10.4 \
  SPARK_VERSION=1.0.0-SNAPSHOT \
  SPARK_RELEASE_REPOSITORY=file:///home/patrick/.ivy2/local \
  sbt run