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

Glue Table creation fails if it does not have any partition #36

Open
tufailkhan89 opened this issue Dec 15, 2020 · 0 comments
Open

Glue Table creation fails if it does not have any partition #36

tufailkhan89 opened this issue Dec 15, 2020 · 0 comments

Comments

@tufailkhan89
Copy link

com.amazonaws.glue.catalog.metastore.GlueMetastoreClientDelegate#createTable(org.apache.hadoop.hive.metastore.api.Table tbl) throws NullPointerException if the table does not have any partition.

Actaut root cause appeared to be in method
com.amazonaws.glue.catalog.converters.HiveToCatalogConverter#com.amazonaws.services.glue.model.Table convertTable(Table hiveTable) at line catalogTable.setPartitionKeys(convertFieldSchemaList(hiveTable.getPartitionKeys()));

Exception Trace.
org.apache.hadoop.hive.metastore.api.MetaException: Unable to create table: java.lang.NullPointerException
at com.amazonaws.glue.catalog.metastore.GlueMetastoreClientDelegate.createTable(GlueMetastoreClientDelegate.java:323) ~[aws-glue-datacatalog-hive2-client-1.10.0-SNAPSHOT.jar:?]
at com.amazonaws.glue.catalog.metastore.AWSCatalogMetastoreClient.createTable(AWSCatalogMetastoreClient.java:596) ~[aws-glue-datacatalog-hive2-client-1.10.0-SNAPSHOT.jar:?]

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

No branches or pull requests

1 participant