XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • SQL
    • None

    Description

      This command will return a CREATE TABLE command in SQL. Right now, we just throw exception (I was not sure how often people will use it). Since it is a pretty standalone work (generating a CREATE TABLE command based on the metadata of a table) and people may find it pretty useful, I am thinking to get it in 2.0. Hive's implementation can be found at https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java#L1898-L2126. The main difference for spark is that if we have a data source table, we should use Spark's syntax (CREATE TABLE ... USING ... OPTIONS) instead of Hive's syntax.

      Attachments

        Activity

          People

            lian cheng Cheng Lian
            xwu0226 Xin Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: