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

Source Table in error message #1008

Open
mbroecheler opened this issue Nov 18, 2024 · 0 comments
Open

Source Table in error message #1008

mbroecheler opened this issue Nov 18, 2024 · 0 comments

Comments

@mbroecheler
Copy link
Contributor

When the FlexibleSchema produces an error, the table name is set to "schema" which makes it hard to know which source was causing the error:

Caused by: java.lang.IllegalArgumentException: Field [type] has non-null constraint but record contains null value [table=schema]
        at com.datasqrl.error.ErrorMessage.asException(ErrorMessage.java:39) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.error.ErrorCollector.exception(ErrorCollector.java:187) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.error.ErrorCollector.fatal(ErrorCollector.java:174) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.error.ErrorCollector.fatal(ErrorCollector.java:170) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.schema.input.FlexibleSchemaValidator.handleNull(FlexibleSchemaValidator.java:114) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.schema.input.FlexibleSchemaValidator.verifyAndAdjust(FlexibleSchemaValidator.java:91) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.schema.input.FlexibleSchemaValidator.convertDataToMatchedType(FlexibleSchemaValidator.java:177) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.schema.input.FlexibleSchemaValidator.verifyAndAdjust(FlexibleSchemaValidator.java:242) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.schema.input.FlexibleSchemaValidator.verifyAndAdjust(FlexibleSchemaValidator.java:148) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.schema.input.FlexibleSchemaValidator.verifyAndAdjust(FlexibleSchemaValidator.java:76) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.schema.input.FlexibleSchemaValidator.verifyAndAdjust(FlexibleSchemaValidator.java:55) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.format.FlexibleSchemaDelegate.deserialize(FlexibleSchemaDelegate.java:62) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at com.datasqrl.format.FlexibleSchemaDelegate.deserialize(FlexibleSchemaDelegate.java:23) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at org.apache.flink.api.common.serialization.DeserializationSchema.deserialize(DeserializationSchema.java:82) ~[sqrl-run.jar:0.5.9-SNAPSHOT]
        at org.apache.flink.connector.file.table.DeserializationSchemaAdapter$LineBytesInputFormat.readRecord(DeserializationSchemaAdapter.java:197) ~[sqrl-run.jar:0.5.9-SNAPSHOT]

Let's pass in an identifier for the source table so it's easier to troubleshoot.

@github-project-automation github-project-automation bot moved this to Backlog in DataSQRL Nov 18, 2024
@mbroecheler mbroecheler modified the milestone: v0.5.9 Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant