Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27943 Implement default constraint with Column for Hive table
  3. SPARK-27462

Spark hive can not choose some columns in target table flexibly, when running insert into.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.3.0, 2.4.0
    • None
    • SQL
    • None

    Description

      Spark SQL can not support the feature to choose some columns in target table flexibly, when running

      insert into tableA select ... from tableB;

      This feature is supported by Hive, so I think this grammar should be consistent with Hive。

      Hive support some feature about 'insert into' as follows:

      insert into gja_test_spark select * from gja_test;
      insert into gja_test_spark(key, value, other) select key, value, other from gja_test;
      insert into gja_test_spark(key, value) select value, other from gja_test;
      insert into gja_test_spark(key, other) select value, other from gja_test;
      insert into gja_test_spark(value, other) select value, other from gja_test;

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              beliefer Jiaan Geng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: