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

Error reading generationExpression in column metadata #3326

Open
zeevm opened this issue Mar 14, 2025 · 1 comment
Open

Error reading generationExpression in column metadata #3326

zeevm opened this issue Mar 14, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@zeevm
Copy link
Contributor

zeevm commented Mar 14, 2025

The code in schema.rs assumes the expression for "generationExpression" should be a valid JSON for some reason, it shouldn't, it doesn't specify this in the protocol.

The code tries to deserialize this as a JSON VALUE and fails, thus unable to open the table.

Even the unit tests wrongly assume this, see the extra escaped double quotes:
{"name":"id2","type":"integer","nullable":true,"metadata":{"delta.generationExpression":"\"id * 10\""}},]

@zeevm zeevm added the bug Something isn't working label Mar 14, 2025
@ion-elgreco
Copy link
Collaborator

Can you put in a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants