fix(sql): proper error message when timestamp used along another join key in ASOF/LT join#6698
fix(sql): proper error message when timestamp used along another join key in ASOF/LT join#6698bluestreak01 merged 5 commits intomasterfrom
Conversation
WalkthroughThis PR adds validation to prevent designated timestamp columns from being used as join keys in ASOF/LT joins. It introduces a new validation method that raises a proper SqlException instead of allowing an AssertionError to occur when a timestamp is incorrectly specified in multi-key join conditions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.40.5)core/src/main/java/io/questdb/griffin/SqlCodeGenerator.javacore/src/test/java/io/questdb/test/griffin/engine/join/JoinTest.javaThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@CodeRabbit Please review this. |
|
🧠 Learnings used✅ Actions performedReview triggered.
|
[PR Coverage check]😍 pass : 502 / 579 (86.70%) file detail
|
Fixes #6637