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

SchemaString Key Error #58

Open
crisnaX opened this issue Mar 8, 2024 · 4 comments
Open

SchemaString Key Error #58

crisnaX opened this issue Mar 8, 2024 · 4 comments

Comments

@crisnaX
Copy link

crisnaX commented Mar 8, 2024

While trying to load delta table getting shemaString key error at apply_partial_logs function. This issue due to some imperfections in checkpoint file like metadata doesn't have schemaString in one of the checkpoint file. I need to skip that file and load delta table. For this we need to add error handling functionality.
IMG_20240309_031808

@jeppe742
Copy link
Owner

Hey @crisnaX
I'm a bit surprised you even managed to get this error.
According to the delta protocol the schemaString is a required field.
What did you use to create the delta table?

@crisnaX
Copy link
Author

crisnaX commented Mar 14, 2024

We are using databricks streaming tables. pyspark will create delta tables. For the negative testing we send the change in schema or some other violated files to check the capability of handling of our data quality rules. During that time the delta log records are not having this schemaString. When I am using delta lake reader from my vscode, I was getting this error at such particular log file. For that,I have raised a pull request.

@crisnaX
Copy link
Author

crisnaX commented Mar 14, 2024

Just Try and Except added to partial logs,I was able to resolve that issue. You are correct according to delta protocol schema String is required field. But, exceptional cases like schema mismatch this is happening.

@crisnaX
Copy link
Author

crisnaX commented Apr 2, 2024

Any update @jeppe742 ?

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

2 participants