Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-17452

Spark 2.0.0 is not supporting the "partition" keyword on a "describe" statement when using Hive Support

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0
    • None
    • SQL
    • None
    • Amazon EMR 5.0.0

    Description

      Changes introduced in Spark 2 are not supporting the "partition" keyword on a "describe" statement.

      EMR 5 (Spark 2.0):
      ==================
      scala> import org.apache.spark.sql.SparkSession
      scala> val sess=SparkSession.builder().appName("test").enableHiveSupport().getOrCreate()

      scala> sess.sql("describe formatted page_view partition (dt='2008-06-08', country='AR')").show
      org.apache.spark.sql.catalyst.parser.ParseException:
      Unsupported SQL statement
      == SQL ==
      describe formatted page_view partition (dt='2008-06-08', country='AR')
      at org.apache.spark.sql.catalyst.parser.AbstractSqlParser$$anonfun$parsePlan$1.apply(ParseDriver.scala:58)
      at org.apache.spark.sql.catalyst.parser.AbstractSqlParser$$anonfun$parsePlan$1.apply(ParseDriver.scala:53)
      at org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parse(ParseDriver.scala:82)
      at org.apache.spark.sql.execution.SparkSqlParser.parse(SparkSqlParser.scala:46)
      at org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parsePlan(ParseDriver.scala:53)
      at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:582)
      ... 48 elided

      Same statement is working fine on Spark 1.6.2 and Spark 1.5.2.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hvivani Hernan Vivani
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: