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

Spark 2 cannot create table when CLUSTERED.

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.1, 2.2.0
    • 2.3.0
    • SQL
    • None
    • Important

    Description

      This does not work with CLUSTERED BY clause in Spark 2 now!

      CREATE TABLE test.dummy2
      (
      ID INT
      , CLUSTERED INT
      , SCATTERED INT
      , RANDOMISED INT
      , RANDOM_STRING VARCHAR(50)
      , SMALL_VC VARCHAR(10)
      , PADDING VARCHAR(10)
      )
      CLUSTERED BY (ID) INTO 256 BUCKETS
      STORED AS ORC
      TBLPROPERTIES ( "orc.compress"="SNAPPY",
      "orc.create.index"="true",
      "orc.bloom.filter.columns"="ID",
      "orc.bloom.filter.fpp"="0.05",
      "orc.stripe.size"="268435456",
      "orc.row.index.stride"="10000" )

      scala> HiveContext.sql(sqltext)
      org.apache.spark.sql.catalyst.parser.ParseException:
      Operation not allowed: CREATE TABLE ... CLUSTERED BY(line 2, pos 0)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            mich Dr Mich Talebzadeh
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment