-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat: Implement date_part scalar function
#27005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
devanbenz
wants to merge
111
commits into
master-1.x
Choose a base branch
from
db/76/date_part
base: master-1.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 104 commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
8148077
feat: Implementing date_part
devanbenz 017d816
feat: Add date_part constants and validation
devanbenz 4e4ecad
feat: Adds date_part built in function
devanbenz fe5551b
feat: Implement date_part builtin function
devanbenz 2da8c6d
chore: checkfmt
devanbenz 70314d7
fix: fixes TestDatePartValuer test
devanbenz 5ce1eb5
feat: Use type cast instead of switch, we only expect StringLiteral
devanbenz a18ae51
feat: Update ExtractDatePartExpr to return int64 instead of interface
devanbenz 7b2fb86
feat: Working on it
devanbenz fc6ccf0
feat: Trying ti implement `SELECT date_part` semantics
devanbenz 47c37f5
feat: modify selector for date_part so it allows multiple calls
devanbenz 5015287
feat: Remove nil reference, create global config for IsDatePart
devanbenz 9dd9f89
feat: Use constants for date_part and date_part_time
devanbenz 5f007cf
feat: Add tests for multiple function calls
devanbenz 993837e
feat: Adds sub-query tests
devanbenz d38787b
chore: prune some bad tests
devanbenz b1b1d0b
feat: Simplify code
devanbenz 7ad056d
feat: Update Validation for date_part to not return other members
devanbenz 7c1591a
feat: re-add validatedatepart
devanbenz 4591a19
chore: simplify code
devanbenz 48f2235
feat: Update cursor map for time ref
devanbenz c9d8d4c
feat: Merge branch 'master-1.x' into db/76/date_part
devanbenz cb92353
feat: Update constants, add invalid enum, check if using date_part wh…
devanbenz ba00755
fix: fixes ParseDateExpr tests for Invalid enum
devanbenz 4489571
feat: Update TimeString const, add test for DatePartValuer.Value
devanbenz 578b1be
feat: Update consts
devanbenz 995782a
feat: Update iterator key
devanbenz 2bd3738
feat: Adds mapTimeRef bool to help with setting up iterator map
devanbenz 0fee116
feat: Add comment about needTimeRef
devanbenz d21f33a
feat: Put needTimeRef inside iterator code
devanbenz 7b0acac
fix: remove bad param
devanbenz 985021f
feat: Working on it
devanbenz d63b5e5
feat: remove some prints
devanbenz 643b871
feat: Merge branch 'master-1.x' into db/76/date_part
devanbenz 42c0afa
feat: working on it
devanbenz 740dba7
feat: Merge branch 'master-1.x' into db/76/date_part
devanbenz 1ad747c
feat: Adds date part handling
devanbenz 8c24c3d
feat: remove shell script for inserting test data locally
devanbenz 1a5c276
feat: stringer
devanbenz 469d5ed
fix: rm fmt
devanbenz 45fbad9
feat: working on tests
devanbenz 0d74f32
fix: Fixes some tests after grouping keys and date_part GROUP BY changes
devanbenz ecfdb90
feat: remove dead code, don't preempt map init, correct sorting for g…
devanbenz f1159ad
feat: Add isodow group by tests
devanbenz 1621404
feat: cache needs time ref, check nil for Valuer, formatting
devanbenz d17f3aa
feat: generate
devanbenz 11657ba
feat: working on it
devanbenz dd2bfff
feat: adds group by for date_part that allows multiple items
devanbenz 0b34ce2
feat: Merge branch 'master-1.x' into db/76/date_part
devanbenz b9acf96
feat: Adds dimension grouper interface to generalize group by keys
devanbenz 587b5e2
feat: fix test expectations
devanbenz 0cfc64a
feat: Adds comment about what we are doing in the iterator
devanbenz 012f8cf
feat: re-add accidently deleted comments
devanbenz f5f9b95
feat: stop unbounded aux key growth, fix many small allocations for p…
devanbenz 0f40612
feat: use testify
devanbenz 64ed350
feat: fmt
devanbenz b42c1a6
fix: resolve data race with EncodeKeys
devanbenz 41ab550
feat: Simplify the code a bit
devanbenz b94cbd9
fix: fix test expectation
devanbenz a2500a8
feat: Modify aux encoded values to ensure that we don't try to access…
devanbenz 3793006
feat: Use a set for the grouping keys
devanbenz 403c0e8
feat: Modify rows
devanbenz e281f16
feat: Update tests, make sure TZ changes work
devanbenz afa74a6
fix: resolve some copilot suggestions
devanbenz 8adeee7
chore: typos
devanbenz d813d2b
fix: Resolves issue with select/group by differences in date_part
devanbenz 6802cb0
feat: regenerate go files
devanbenz 12da3ff
feat: revert protobuf files, dangit claude!
devanbenz 1e85703
fix: resolve typo for isodow
devanbenz 87adc2c
fix: Resolves nested date_part rejection
devanbenz cd0241f
feat: Use v.table instead of Aux for date part symbols
devanbenz 0c5cc61
fix: return error from DecodeEntry instead of silently dropping
devanbenz 2f822f6
feat: optimize dimension extraction to happen post where filtering
devanbenz 1852457
chore: go generate
devanbenz 73134ff
fix: Address copilot comments
devanbenz a1eb8d7
fix: address copilot review
devanbenz 57ccfa4
chore: go generate
devanbenz 460955e
feat: Update remote messages for date_part
devanbenz 7f3cd9e
feat: Clean up the code a bit and remove some redundant code
devanbenz 9041f49
feat: Modify date_part to reject nil anchors
devanbenz ca1a564
chore: template formatting
devanbenz 457099b
feat: copilot suggestions
devanbenz 6360160
fix: copy in to fixed buffer instead of heap allocation
devanbenz 64b5c5e
chore: fix comment
devanbenz 3a5418b
fix: re-add function declaration
devanbenz ce82e3a
feat: Reduce date_part complexity in other SELECT queries
devanbenz 81a9040
feat: Reject sub-query sources for date_part
devanbenz 8fd2bf7
feat: simplify subquery check
devanbenz 1206e46
feat: simplify
devanbenz 84c46dc
fix: defensive nil check
devanbenz 11946b5
feat: Add anchor validation
devanbenz 0272a34
feat: Merge branch 'db/76/date_part' of github.com:influxdata/influxd…
devanbenz c368482
chore: Merge origin/master-1.x into db/76/date_part
Copilot d39380f
feat: Update protos, dang you copilot for borking it!
devanbenz 474ae65
feat: Ensure that validation works after rewriting
devanbenz 0c8ace0
feat: Support SELECT INTO, load date_part valuer only for date_part
devanbenz 797b859
feat: fixes multi-call group bys, fills, and subquery anchor validation
devanbenz 87d1531
feat: add datePartMap IteratorMap for date_part over subquery
devanbenz 8866b27
feat: Implement subquery support for GROUP BY
devanbenz c9c76b0
feat: update sub-query semantics.
devanbenz 803db1d
feat: Use correct ISODOW
devanbenz 7550b40
feat: Update a few nits to have parity with how DF and PG perform dat…
devanbenz 359ca2b
feat: Address some of Dave's review items
devanbenz bac9523
feat: add test export and fmt
devanbenz cf9917f
feat: Address daves comments, verify that we can not alloc during
devanbenz 7c34d89
feat: Fix stray whitespace in iterator.gen.go.tmpl reduce block
devanbenz 7059db5
feat: Address copilot findings
devanbenz b81488c
feat: Address davidby comments on PR
devanbenz 67f5070
feat: Add same series tests
devanbenz 70b4201
feat: Address a few bugs during compile time
devanbenz 3d27aeb
feat: Address duplications in code
devanbenz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.