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

Raise exception on unexpected error of list relations #270

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

andrefurlan-db
Copy link
Collaborator

@andrefurlan-db andrefurlan-db commented Feb 15, 2023

Description

Because of a AWS Glue issue, it was set to handle any exception and returning empty list of tables. The problem is that further logic decides to create or replace table, which leads to table being overwritten and all previous partitions are lost.

I believe that the problem the previous fix solves is no where near as important to Databricks, and the problem it causes is very bad.

resolves #266

DatabricksAdapter is handling this exception and
returns empty list of tables and further logic decides to
create or replace table ...
which leads to table being overwritten and
all previous partitions are lost.

Signed-off-by: Andre Furlan <[email protected]>
susodapop
susodapop previously approved these changes Feb 17, 2023
@susodapop
Copy link

I think these changes should be committed to the 1.4.latest branch rather than main, but let's expedite now and we can clean it up later.

@andrefurlan-db andrefurlan-db merged commit 54cf1b0 into databricks:main Feb 17, 2023
@andrefurlan-db andrefurlan-db deleted the iss266 branch February 17, 2023 18:22
andrefurlan-db added a commit that referenced this pull request Feb 17, 2023
Because of a AWS Glue issue, list releations was set to handle any exception and returning empty list of tables. The problem is that further logic decides to create or replace table, which leads to table being overwritten and all previous partitions are lost.

I believe that the problem the previous fix solves is no where near as important to Databricks, and the problem it causes is very bad.

resolves #266

Signed-off-by: Andre Furlan <[email protected]>
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.

Table is overwritten if failed to retrieve tables list
3 participants