Skip to content

Conversation

@andrewor14
Copy link
Contributor

What changes were proposed in this pull request?

When we parse DDLs involving table or database properties, we need to validate the values.
E.g. if we alter a database's property without providing a value:

ALTER DATABASE my_db SET DBPROPERTIES('some_key')

Then we'll ignore it with Hive, but override the property with the in-memory catalog. Inconsistencies like these arise because we don't validate the property values.

In such cases, we should throw exceptions instead.

How was this patch tested?

DDLCommandSuite

@andrewor14
Copy link
Contributor Author

@yhuai

@yhuai
Copy link
Contributor

yhuai commented May 19, 2016

lgtm

@SparkQA
Copy link

SparkQA commented May 20, 2016

Test build #58912 has finished for PR 13205 at commit 3920d2a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor Author

Merging into master 2.0 thanks.

asfgit pushed a commit that referenced this pull request May 20, 2016
## What changes were proposed in this pull request?

When we parse DDLs involving table or database properties, we need to validate the values.
E.g. if we alter a database's property without providing a value:
```
ALTER DATABASE my_db SET DBPROPERTIES('some_key')
```
Then we'll ignore it with Hive, but override the property with the in-memory catalog. Inconsistencies like these arise because we don't validate the property values.

In such cases, we should throw exceptions instead.

## How was this patch tested?

`DDLCommandSuite`

Author: Andrew Or <andrew@databricks.com>

Closes #13205 from andrewor14/ddl-prop-values.

(cherry picked from commit 2573750)
Signed-off-by: Andrew Or <andrew@databricks.com>
@asfgit asfgit closed this in 2573750 May 20, 2016
@andrewor14 andrewor14 deleted the ddl-prop-values branch May 20, 2016 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants