fix(sql): support for decimal types in group by fill and selected cursor#6532
fix(sql): support for decimal types in group by fill and selected cursor#6532bluestreak01 merged 2 commits intomasterfrom
Conversation
…actory and SelectedRecord
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes add support for decimal data types (Decimal128, Decimal256, and fixed-size decimals) in two record accessor classes to enable gap-filling functionality for decimal columns in sample-by queries. A corresponding test case validates this behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks 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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
[PR Coverage check]😍 pass : 28 / 28 (100.00%) file detail
|
Fixes #6530
Summary
Using
SAMPLE BY ... FILL(NULL)on a table containing decimal columns and then filtering forNULLvalues in the outer query throwsUnsupportedOperationException: Record.getDecimal128().The issue occurs because
FillRangeRecordCursorFactory.FillRangeRecordandSelectedRecordclasses were missing implementations for thegetDecimal*()methods, causing them to fall through to the default Record interface methods that throwUnsupportedOperationException.This PR adds support for all decimal types in:
FillRangeRecordCursorFactory.FillRangeRecord- handles gap filling with null values for decimal columnsSelectedRecord- properly delegates decimal column access to the base record using the correct column index mapping