feat(sql): add some nanos function and fix cast for date#6247
Merged
bluestreak01 merged 14 commits intomasterfrom Oct 14, 2025
Merged
feat(sql): add some nanos function and fix cast for date#6247bluestreak01 merged 14 commits intomasterfrom
bluestreak01 merged 14 commits intomasterfrom
Conversation
|
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 ✨ 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 |
bluestreak01
approved these changes
Oct 14, 2025
Member
|
hey @nwoolmer would you mind documenting these please? |
Contributor
[PR Coverage check]😍 pass : 812 / 958 (84.76%) file detail
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds some nanos timestamp functions for ease of use and introduces
MillsTimestampDriverfor better consistency betweenDateandTimestampdataType:now_ns()- Returns current timestamp with nanosextract()function now supports extracting nanos from timestampsrnd_timestamp_ns()- Generates random timestamps with nanostimestamp_sequence_ns()function - Generates timestamp sequences with nanosMillsTimestampDriver- New driver implementation forColumnType.Datethat maintains consistency with Timestamp logic. Since Date type is not supported as a designated timestamp, some timestamp-specific functions are not implemented and will throw UnsupportedOperationExceptionBreaking Changs 💥
rnd_timestamp()now only returnstimestamp_microprecision (previously could return different precisions)timestamp_sequence()now only returnstimestamp_microprecision and no longer considers the first argument's type for timestampType determinationClose #6245 and #6224