Skip to content

Conversation

@panbingkun
Copy link
Contributor

@panbingkun panbingkun commented May 16, 2022

What changes were proposed in this pull request?

Migrate the following errors in QueryParsingErrors onto use error classes:

  • cannotCleanReservedNamespacePropertyError =>
    UNSUPPORTED_FEATURE.SET_NAMESPACE_PROPERTY
  • cannotCleanReservedTablePropertyError => UNSUPPORTED_FEATURE.SET_TABLE_PROPERTY
  • invalidPropertyKeyForSetQuotedConfigurationError => INVALID_PROPERTY_KEY
  • invalidPropertyValueForSetQuotedConfigurationError => INVALID_PROPERTY_VALUE
  • propertiesAndDbPropertiesBothSpecifiedError => UNSUPPORTED_FEATURE.SET_PROPERTIES_AND_DBPROPERTIES

Why are the changes needed?

Porting parsing errors of partitions to new error framework, improve test coverage, and document expected error messages in tests.

Does this PR introduce any user-facing change?

No

How was this patch tested?

By running new test:

$ build/sbt "sql/testOnly *QueryParsingErrorsSuite*"

@panbingkun
Copy link
Contributor Author

pinging @MaxGekk

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Merging to master.
Thank you, @panbingkun.

@MaxGekk MaxGekk closed this in 7309e76 May 19, 2022
@MaxGekk
Copy link
Member

MaxGekk commented May 19, 2022

@panbingkun Could you backport this to branch-3.3, please.

MaxGekk pushed a commit that referenced this pull request Jun 21, 2022
…operties

## What changes were proposed in this pull request?
Migrate the following errors in QueryParsingErrors onto use error classes:

- cannotCleanReservedNamespacePropertyError => UNSUPPORTED_FEATURE
- cannotCleanReservedTablePropertyError => UNSUPPORTED_FEATURE
- invalidPropertyKeyForSetQuotedConfigurationError => INVALID_PROPERTY_KEY
- invalidPropertyValueForSetQuotedConfigurationError => INVALID_PROPERTY_VALUE
- propertiesAndDbPropertiesBothSpecifiedError => UNSUPPORTED_FEATURE

This is a backport of #36561.

### Why are the changes needed?
Porting parsing errors of partitions to new error framework, improve test coverage, and document expected error messages in tests.

### Does this PR introduce any user-facing change?
No

### How was this patch tested?
By running new test:
```
$ build/sbt "sql/testOnly *QueryParsingErrorsSuite*"
```

Closes #36916 from panbingkun/branch-3.3-SPARK-37939.

Authored-by: panbingkun <pbk1982@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@panbingkun panbingkun deleted the SPARK-37939 branch July 2, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants