-
Couldn't load subscription status.
- Fork 1.9k
feat(schema-compiler): custom granularity support #8537
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
Merged
Merged
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
d6f5355
remove unneeded filter for granularities
KSDaemon 3b86c53
dedup month in standardGranularitiesParents
KSDaemon ecd648e
feat(schema-compiler): update cube's schema to allow granularities fo…
KSDaemon 747da06
fix custom granularity processing in time dimension
KSDaemon 306309f
update yaml schema compiler to process custom granularities
KSDaemon 7193911
Add custom granularities support to time dimension and base query
KSDaemon 868c0ee
feat(schema-compiler): update cube's schema to allow granularities fo…
KSDaemon db95c27
Add custom granularities simple syntax support to the time dimension …
KSDaemon 5e41356
Rename baseGranularity → rollupGranularity
KSDaemon 57db063
fix schema validation
KSDaemon acbf61a
fix custom granularity processing in BaseTimeDimension
KSDaemon 22295cb
Moved custom granularity processing from time dimension to base query
KSDaemon 68b2cf9
Revert: deep evaluateSymbolSql processing
KSDaemon 747a04f
Implement dimensionTimeGroupedColumn for Snowflake
KSDaemon ad78b11
Implement dimensionTimeGroupedColumn for MySQL
KSDaemon 5146ce4
Add custom granularity time intervals generation (used in rollups)
KSDaemon 26bb1ad
Rewrite parseSqlInterval from regex to split
KSDaemon 340ee72
Add tests for timeSeriesFromCustomInterval
KSDaemon f0bc42e
Add tests for yaml schema compiler
KSDaemon 06eea5e
Add tests for cube validator
KSDaemon 0e97d89
Fix overTimeSeriesQuery with custom granularities
KSDaemon d021769
Add tests for sql query generation for queries with custom granularities
KSDaemon 56a43d0
return back deleted test
KSDaemon ecfd06c
Remove comment, add types
KSDaemon 6689cd1
update cube validation scheme: remove sql, add origin
KSDaemon 0c05cdf
add tests for cube validator
KSDaemon b26abc9
add another test for yaml schema compiler
KSDaemon 8040780
move isGranularityNaturalAligned() to utils to be reused
KSDaemon 4cf64af
Add Granularity entity and move all related processing there
KSDaemon 41f9e9f
temporary comment out dimensionTimeGroupedColumn
KSDaemon c31a55c
Fix timeSeriesFromCustomInterval generation
KSDaemon a71ef83
Fix tests timeSeriesFromCustomInterval
KSDaemon 441fd90
Add more tests for timeSeriesFromCustomInterval
KSDaemon 4cb2ce3
Fix Granularity constructor
KSDaemon e23b3b2
Add integration tests for Custom Granularities for PostgreSQL
KSDaemon 410b50a
Fix Custom Granularities tests in CI (needs order by)
KSDaemon 6a316e5
Implement date_bin for Snowflake
KSDaemon fd3290d
Move BaseDbRunner from postgres to separate folder
KSDaemon c41ecdd
fix customGranularity.origin init
KSDaemon c510ae6
implement dateBin in MySQL
KSDaemon 5c59bde
fix interval math ops in MySQL
KSDaemon 23b1237
fix postgres custom granularities tests
KSDaemon d81dfb0
Add tests for custom granularities in MySQL
KSDaemon 8cd6c0d
move granularityFromIntervalString from BaseQuery → Granularity
KSDaemon 32ee114
fix granularityFromIntervalString
KSDaemon d198127
improve addInterval / subtractInterval in MS SQL Query (now supports …
KSDaemon fa8f60b
Implement dateBin for MS SQL
KSDaemon 98b6418
Add tests for custom granularities in MS SQL
KSDaemon 39c4b08
fix 2 granularities test (actually revert the bad changes back)
KSDaemon 8ebc08c
add comment for dateBin in postgresql query
KSDaemon 3ed167f
Implement dateBin for Databricks
KSDaemon 58f5890
Implement dateBin for DuckDB
KSDaemon e4c18d9
implement dateBin for BigQuery
KSDaemon 60756e4
extend testing fixtures with custom granularities
KSDaemon 700dced
fix TimeDimensionGranularity type to allow custom granularities
KSDaemon 6350fc1
Add more unit tests for granularities
KSDaemon eaac9fa
fix writing yaml with test cubes definitions containing origin with d…
KSDaemon 251ded8
add tests for custom granularities in testing drivers
KSDaemon 7775927
skip custom granularities tests for athena
KSDaemon fb82b5c
skip custom granularities tests for clickhouse
KSDaemon 9e4081f
add test snapshots for custom granularities tests for postgres
KSDaemon 4d939f8
skip custom granularities tests for mysql (some)
KSDaemon 49a2665
add test snapshots for custom granularities tests for ms sql
KSDaemon 0186c6b
skip custom granularities tests for mssql (some)
KSDaemon 1224869
add test snapshots for custom granularities tests for snowflake
KSDaemon 389c7ea
add test snapshots for custom granularities tests for bigQuery
KSDaemon fcbf366
skip custom granularities tests for databricks (some)
KSDaemon 39f96e2
add test snapshots for custom granularities tests for Databricks
KSDaemon 7a4aecc
Implement dateBin for ClickHouse
KSDaemon 8b96ae5
Add custom granularities integration tests for ClickHouse
KSDaemon d2a5fa8
unskip custom granularities tests for clickhouse (some)
KSDaemon f048888
add test snapshots for custom granularities tests for ClickHouse
KSDaemon 8c82e27
fix linting
KSDaemon 6bf8aa6
fix integration tests for clickhouse v22.x
KSDaemon 1bdec91
fix in dateBin for Postgresql and Bigquery
KSDaemon e62cfc4
Add char limits for granularities names in queries
KSDaemon e021cad
Add time series date range limit checking before generating
KSDaemon ad8f395
add tests for limit checking in time series generation
KSDaemon dab2a49
Improve error message for time series limit
KSDaemon e8596c2
fix tests for time series limit
KSDaemon 535e9db
Refactor: move isGranularityNaturalAligned from Basequery → Granulari…
KSDaemon 4f5e6cc
add test snapshots for custom granularities tests for MySQL
KSDaemon 93ea144
move diffTimeUnitForInterval to BaseQuery
KSDaemon dde3c25
fix in choosing minGranularity for granularity with origin point
KSDaemon 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.