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

SHOW CREATE TABLE shows incomplete information for STRUCT type fields.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      `SHOW CREATE TABLE` does not return struct fields `NOT NULL` qualifiers as well as comments.

      E.g.
      ```
      CREATE TABLE test(a STRUCT<b: INT NOT NULL, c: STRING COMMENT 'comment'>);
      SHOW CREATE TABLE test;
      ```

      Result:
      ```
      CREATE TABLE test(a STRUCT<b: INT, c: STRING)
      ```

      Attachments

        Issue Links

          Activity

            People

              vli-databricks Vitalii Li
              vli-databricks Vitalii Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: