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

Multiple Bugs in DDL Statements on Temporary Views

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.1.0
    • 2.0.1, 2.1.0
    • SQL
    • None

    Description

      • When the permanent tables/views do not exist but the temporary view exists, the expected error should be `NoSuchTableException` for partition-related ALTER TABLE commands. However, it always reports a confusing error message. For example,
        Partition spec is invalid. The spec (a, b) must match the partition spec () defined in table '`testview`';
        
      • When the permanent tables/views do not exist but the temporary view exists, the expected error should be `NoSuchTableException` for `ALTER TABLE ... UNSET TBLPROPERTIES`. However, it reports missing table property. However, the expected error should be `NoSuchTableException`. For example,
        Attempted to unset non-existent property 'p' in table '`testView`';
        
      • When `ANALYZE TABLE` is called on a view or a temporary view, we should issue an error message. However, it reports a strange error:
        ANALYZE TABLE is not supported for Project
        

      Attachments

        Activity

          People

            smilegator Xiao Li
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: