Backend/fix : toClickHouseVal support for Boolean Values#1332
Backend/fix : toClickHouseVal support for Boolean Values#1332dhruv-1010 wants to merge 1 commit into
Conversation
|
Warning Review limit reached
More reviews will be available in 44 minutes and 44 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR extends the ClickHouse storage abstraction to support multiple filter value representations for a single logical value. A new ChangesClickHouse filter values abstraction and query rendering
🎯 3 (Moderate) | ⏱️ ~25 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/mobility-core/src/Kernel/Storage/ClickhouseV2/ClickhouseValue.hs`:
- Around line 51-56: The Maybe instance currently collapses Just values to a
single literal; update the ClickhouseValue (Maybe a) implementation so
toClickhouseFilterValues propagates the underlying expansion: implement
toClickhouseFilterValues (Just x) by calling toClickhouseFilterValues x to get
NonEmpty (Value a) and then map each inner Value to the corresponding Value for
Maybe (i.e., wrap the same String/Number variants for the Just cases), and
implement toClickhouseFilterValues Nothing = Null :| []; also ensure
toClickhouseValue/fromClickhouseValue for ClickhouseValue (Maybe a) remain
consistent with that wrapping (use toClickhouseValue for Just and produce Null
for Nothing) so nullable columns get the expanded filter literals.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8dd38de1-c116-4654-8072-2c904fdac391
📒 Files selected for processing (2)
lib/mobility-core/src/Kernel/Storage/ClickhouseV2/ClickhouseValue.hslib/mobility-core/src/Kernel/Storage/ClickhouseV2/Internal/ClickhouseQuery.hs
8ddbfbc to
dbb0494
Compare
Summary by CodeRabbit