feat: Upgrade velox submodule to y-scope/velox@7ae5119.#65
Conversation
WalkthroughUpdates test-only code: changes the datetime function name casing in an existing SELECT and adds two assertQuery cases to TestPrestoNativeClpGeneralQueries that filter by a FROM_UNIXTIME threshold and by msg LIKE '%user%', each ordering by id and limiting to one row. Also advances the Velox submodule pointer. No production API changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Pre-merge checks (1 passed, 2 warnings)❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing Touches
🧪 Generate unit tests
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: 3
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (2)
presto-native-execution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java(1 hunks)presto-native-execution/velox(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: prestocpp-linux-build-for-test
- GitHub Check: maven-checks (17.0.13)
- GitHub Check: maven-checks (8.0.442)
🔇 Additional comments (2)
presto-native-execution/velox (1)
1-1: Submodule bump verified: correct remote, commit and CLP-related changes
presto-native-execution/velox is pinned to https://github.com/y-scope/velox.git@7ae51198424559a7ed6d245ce4c4214ef7047d9d on branch presto-0.293-clp-connector; CLP/IR commits (#19, #22, #25, #29) are present.presto-native-execution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java (1)
129-173: LGTM on added coverage.Nice end-to-end assertions that exercise timestamp and message filters against the CLP dataset, and good use of String.format with escaped percent signs.
...cution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java
Outdated
Show resolved
Hide resolved
...cution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java
Outdated
Show resolved
Hide resolved
...cution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (3)
presto-native-execution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java (3)
129-150: Stabilize timestamp filter; avoid DOUBLE drift; add deterministic tie-breaker.Using FROM_UNIXTIME(double) is time-zone and rounding sensitive, which risks flakiness. Prefer a TIMESTAMP literal and add a secondary ORDER BY key.
Apply:
- " WHERE t.dollar_sign_date > FROM_UNIXTIME(1679441694.576)" + - " ORDER BY id" + + " WHERE t.dollar_sign_date > TIMESTAMP '2023-03-22 12:34:54.576'" + + " ORDER BY id, t.dollar_sign_date" +Optionally verify there aren’t other DOUBLE-based timestamp filters and whether tests pin a session time zone:
#!/bin/bash rg -n --type=java 'from_unixtime\(' presto-native-execution/src/test/java || true rg -n -C2 --type=java '(TimeZoneKey|getTimeZoneKey|setTimeZone\(|System\.setProperty\("user\.timezone")' presto-native-execution/src/test/java || true
151-173: Mirror the timestamp stabilisation and sorting fix here.Same flakiness risk; apply the same predicate and ordering treatment.
Apply:
- " WHERE t.dollar_sign_date > FROM_UNIXTIME(1679441694.576)" + + " WHERE t.dollar_sign_date > TIMESTAMP '2023-03-22 12:34:54.576'" + " AND msg like '%%user%%'" + - " ORDER BY id" + + " ORDER BY id, t.dollar_sign_date" +
160-160: Use ILIKE if case-insensitive match is intended.More resilient to message casing changes.
Apply:
- " AND msg LIKE '%%user%%'" + + " AND msg ILIKE '%%user%%'" +
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
presto-native-execution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
- GitHub Check: test (17.0.13, :presto-main-base)
- GitHub Check: test (17.0.13, :presto-tests -P ci-only-resource-manager)
- GitHub Check: test (17.0.13, :presto-tests -P ci-only-distributed-non-hash-gen)
- GitHub Check: test (8.0.442, :presto-tests -P ci-only-plan-determinism)
- GitHub Check: test (8.0.442, :presto-tests -P presto-tests-general)
- GitHub Check: test (17.0.13, :presto-tests -P presto-tests-execution-memory)
- GitHub Check: test (8.0.442, :presto-main-base)
- GitHub Check: test (8.0.442, :presto-tests -P ci-only-distributed-non-hash-gen)
- GitHub Check: test (8.0.442, :presto-tests -P presto-tests-execution-memory)
- GitHub Check: test (8.0.442, :presto-tests -P ci-only-tpch-distributed-queries)
- GitHub Check: prestocpp-linux-build-for-test
- GitHub Check: maven-checks (17.0.13)
- GitHub Check: maven-checks (8.0.442)
- GitHub Check: prestissimo-worker-images-build
...cution/src/test/java/com/facebook/presto/nativeworker/TestPrestoNativeClpGeneralQueries.java
Outdated
Show resolved
Hide resolved
a50bfef
into
y-scope:release-0.293-clp-connector
Description
This PR is to update the Velox submodule to sync the merged PR y-scope/velox#29 to have the refactored
Clp*Cursorin Velox codebase.Checklist
breaking change.
Validation performed
Passed the CI.
Summary by CodeRabbit
Tests
Chores