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

Add hive_metastore.thrift machinery needed for alterTable #15

Merged

Conversation

djsstarburst
Copy link
Member

@djsstarburst djsstarburst commented Aug 21, 2020

This commit adds the minimum machinery needed to be able to call metastore.alterTable(alterTableRequest). That minimum machinery is:

  • Adding int field writeId, number 19, at the end of struct Table.
  • Adding structs AlterTableRequest and AlterTableResponse.
  • Adding new method alter_table_req(alterTableRequest).

Because files hive_metastore.thrift and fb303.thrift didn't exist in the repo, the first commit in this series adds the 3.1.2 versions of those files.

@cla-bot cla-bot bot added the cla-signed label Aug 21, 2020
@findepi findepi requested a review from losipiuk August 21, 2020 21:59
Copy link
Member

@losipiuk losipiuk left a comment

Choose a reason for hiding this comment

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

If we want those changes we need to also regenerate .java classes from updated .thrift file. AFAIK those are not generate on build.

@djsstarburst djsstarburst force-pushed the david.stryker/add-hive-alter-table branch 2 times, most recently from a37455b to b775e6e Compare August 24, 2020 16:28
pom.xml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
pom.xml Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
@djsstarburst djsstarburst force-pushed the david.stryker/add-hive-alter-table branch from b775e6e to 1a2ee59 Compare August 26, 2020 13:29
@djsstarburst djsstarburst force-pushed the david.stryker/add-hive-alter-table branch from 943be86 to 6dc8517 Compare September 3, 2020 15:29
bin/generate-sources.sh Outdated Show resolved Hide resolved
@djsstarburst djsstarburst force-pushed the david.stryker/add-hive-alter-table branch 2 times, most recently from 255fd24 to a7ad75c Compare September 21, 2020 20:53
losipiuk and others added 4 commits September 21, 2020 14:57
This commit adds the minimum machinery needed to be able to
call metastore.alterTable(alterTableRequest).  That minimum
machinery is:
o Adding int field writeId, number 19, at the end of struct Table.
o Adding structs AlterTableRequest and AlterTableResponse.
o Adding new method alter_table_req(alterTableRequest).
This request is needed to support Hive ACID insert or update or merge
into a partitioned table.
Delete and insert Hive ACID operations must update the writeId
of partitions as part of commit, and our hive_metastore.thrift doesn't
have writeId.  This commit adds that field as seen in the master hive
branch, as well as two optional statistics fields, isStatsCompliant
and colStats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants