Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18736

Create Table Like doc needs to be updated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Documentation
    • None

    Description

      https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-CreateTableLike needs to be updated.

      according to HiveParser.g the syntax is much richer that what is in the doc

          -> ^(TOK_CREATETABLE $name $temp? $ext? ifNotExists?
               ^(TOK_LIKETABLE $likeName?)
               columnNameTypeOrConstraintList?
               tableComment?
               tablePartition?
               tableBuckets?
               tableSkewed?
               tableRowFormat?
               tableFileFormat?
               tableLocation?
               tablePropertiesPrefixed?
               selectStatementWithCTE?
              )
      

      I tried specifying TBLPROPERTIES on current master (Hive 3.0) and it works. Updated doc accordingly but more verification/doc changes are needed.

      Attachments

        Issue Links

          Activity

            People

              nikkyharsoor Nikhil Harsoor
              ekoifman Eugene Koifman
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: