Skip to content

Improve Glue failure message when storage descriptor not set#10896

Merged
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/improve-glue-failure-message-when-storage-descriptor-not-set-6b1b12
Feb 2, 2022
Merged

Improve Glue failure message when storage descriptor not set#10896
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/improve-glue-failure-message-when-storage-descriptor-not-set-6b1b12

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Feb 1, 2022

No description provided.

@findepi findepi requested review from alexjo2144 and hashhar February 1, 2022 21:01
@cla-bot cla-bot bot added the cla-signed label Feb 1, 2022
@findepi
Copy link
Copy Markdown
Member Author

findepi commented Feb 1, 2022

cc @losipiuk

Copy link
Copy Markdown
Member

@alexjo2144 alexjo2144 left a comment

Choose a reason for hiding this comment

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

Do you have a GH Issue to link?

Copy link
Copy Markdown
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

Please create a GitHub issue and link to it so that we can fix it.

However if the StorageDescriptor is optional how are we supposed to be able to use the table anyway? Does AWS Glue want us to retry our request to get the storage descriptor?

@findepi
Copy link
Copy Markdown
Member Author

findepi commented Feb 2, 2022

However if the StorageDescriptor is optional how are we supposed to be able to use the table anyway?

That's why i didn't fix it yet.

@findepi findepi force-pushed the findepi/improve-glue-failure-message-when-storage-descriptor-not-set-6b1b12 branch from 2d7dd4f to 0b6a6e7 Compare February 2, 2022 08:21
@findepi findepi merged commit 0c14280 into trinodb:master Feb 2, 2022
@findepi findepi deleted the findepi/improve-glue-failure-message-when-storage-descriptor-not-set-6b1b12 branch February 2, 2022 08:22
public static Table convertTable(com.amazonaws.services.glue.model.Table glueTable, String dbName)
{
requireNonNull(glueTable.getStorageDescriptor(), "Table StorageDescriptor is null");
// TODO (https://github.com/trinodb/trino/issues/10902) glueTable.getStorageDescriptor() is an optional field in Glue
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@github-actions github-actions bot added this to the 370 milestone Feb 2, 2022
@alexjo2144
Copy link
Copy Markdown
Member

alexjo2144 commented Feb 2, 2022

Maybe something like this:

695d596
06ff7e6

@findepi
Copy link
Copy Markdown
Member Author

findepi commented Feb 3, 2022

Maybe something like this:

695d596 06ff7e6

@alexjo2144 not sure if returning "table not found" is the right approach...

anyway, maybe we talk this under #10902 .

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.

3 participants