Skip to content

PHOENIX-7270 : Always resolve table before DDL operations#1854

Merged
shahrs87 merged 7 commits intoapache:PHOENIX-6883-featurefrom
palashc:PHOENIX-7270
Mar 15, 2024
Merged

PHOENIX-7270 : Always resolve table before DDL operations#1854
shahrs87 merged 7 commits intoapache:PHOENIX-6883-featurefrom
palashc:PHOENIX-7270

Conversation

@palashc
Copy link
Copy Markdown
Contributor

@palashc palashc commented Mar 11, 2024

No description provided.


public static ColumnResolver getResolver(SingleTableStatement statement, PhoenixConnection connection)
throws SQLException {
SingleTableColumnResolver visitor = new SingleTableColumnResolver(connection, statement.getTable(), true);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we use one of these resolvers when we run ALTER TABLE <table-name> SET PROPERTY statement?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes.
Confirmed from SetPropertyIT that setting property on table/view goes through ExecutableAddColumnStatement and that uses the resolver change we made.

Copy link
Copy Markdown
Contributor

@shahrs87 shahrs87 left a comment

Choose a reason for hiding this comment

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

+1 ltgm.
Will merge once jenkins is green.

@palashc
Copy link
Copy Markdown
Contributor Author

palashc commented Mar 14, 2024

@shahrs87 Pushed some checkstyle fixes, test results looked good - https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1854/5/testReport/

@shahrs87 shahrs87 merged commit 064c80e into apache:PHOENIX-6883-feature Mar 15, 2024
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.

2 participants