DanielCarter-stack commented on issue #10479: URL: https://github.com/apache/seatunnel/issues/10479#issuecomment-3878754398
<!-- code-pr-reviewer --> Thanks for the report. This is a valid issue. **Root cause:** JSQLParser parses `true`/`false` as `Column` expressions, and the current boolean literal handling at `ZetaSQLType.java:111-115` only works for simple column names. When processing qualified names (e.g., with `.` separator), the code throws `IllegalArgumentException: can't find field [true]` at line 134-136 before reaching the boolean literal fallback. **Workaround:** Use string comparison like `is_validate = 'true'` or wrap with CASE WHEN. **Proposed fix:** Extend the boolean literal check to the nested field resolution logic before throwing the exception. Reference implementation exists in `ZetaSQLFunction.java:291-305`. **Missing:** Please share your schema (DDL) and a complete SQL example that reproduces the error so we can add a test case and validate the fix. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
