Skip to content

Conversation

@siddhimehta
Copy link
Contributor

@ChinmaySKulkarni @abhishek-chouhan Creating this PR to get feedback on the approach.
I have added a config to enable this behaviour ( default false).
Ran all the IT locally for the same

Copy link
Contributor

@ChinmaySKulkarni ChinmaySKulkarni left a comment

Choose a reason for hiding this comment

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

@siddhimehta overall looks good. I have a few comments. Just to make sure, can we also test this with view creation and view index creation. Currently it looks like we have a test for just table creation (no need to add new tests for these cases, but let's just check it works as expected).

@siddhimehta
Copy link
Contributor Author

@ChinmaySKulkarni Tested view creation and index creation also

ensureTableCreated(getUrl(), tableName, TestUtil.PTSDB_NAME, null, null, null);
Properties props = new Properties();
props.setProperty(QueryServices.PENDING_MUTATIONS_DDL_THROW_ATTRIB, Boolean.toString(true));
Connection conn = DriverManager.getConnection(getUrl(), props);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: try-with-resources to auto-close connection and statement.

Copy link
Contributor

@ChinmaySKulkarni ChinmaySKulkarni left a comment

Choose a reason for hiding this comment

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

+1 thanks @siddhimehta

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