Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HIVE-15727] Adding pre insert work and block insert intot statement #139

Closed
wants to merge 4 commits into from

Conversation

b-slim
Copy link
Contributor

@b-slim b-slim commented Jan 25, 2017

No description provided.

@b-slim b-slim changed the title Adding pre insert work and block insert intot statement [HIVE-15727] Adding pre insert work and block insert intot statement Jan 25, 2017
@b-slim b-slim force-pushed the HIVE-15727-block-insert-into branch from 68be75b to 88d0ff5 Compare January 27, 2017 01:23
*
* @throws MetaException
*/
void preInsertTable(Table table, boolean overwrite) throws MetaException;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this method doesn't belong in this interface. Since, this is not called when we are making metadata calls, instead this is tied to query lifecycle.

I think this should be added to StorageHandler interface and then in DDLTask execute(), should get called as table.getStorageHandler().preInsert()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ashutoshc would this also to the function InsertTable added in the previous PR ?

@@ -2216,6 +2216,16 @@ public void addDynamicPartitions(long txnId, String dbName, String tableName,
}

@Override
public void preInsertTable(Table table, boolean overwrite) throws MetaException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to pass in PreInsertTableDesc object instead of 2 arguments. Helps in evolving interface better.

@b-slim b-slim closed this Dec 4, 2018
@b-slim b-slim deleted the HIVE-15727-block-insert-into branch December 4, 2018 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants