XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Allow defining new columns or overriding source column types on CTAS statements.

      For following syntax should be allowed:

      CREATE TABLE table_name [( <column_definition>[, ...n] )]
      [WITH (table_properties)]
      AS SELECT query_expression;
      

      If new columns are defined in the create clause, then the columns should appear at the beginning of the resulted sink schema. Columns of the query source schema should appear at the end.

      If source columns are re-defined in the create clause, then the columns should appear in the same order as the query schema. Column types may be overridden, but implicit casting rules should be validated and applied (similar to iNSERT/SELECT statements) to make sure the SELECT query will be able to run and write the data to the sink table.

      Attachments

        Issue Links

          Activity

            People

              spena Sergio Peña
              spena Sergio Peña
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: