-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add duckdb build/concepts and use SQLGlot to convert BigQuery SQL into other dialects #1689
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 45 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
463609d
First "working" version (all SQL runs except for a few pivot concepts…
b7fffcc
Stripped dead code
ecbfe4d
Simplify pathing, strip more dead code
0e02dad
Align with shell script version
10e7f4e
Add requirements.txt
17ac9f4
Pulled sql out of .sh plus minor related mods
f777f46
Add table creation/loading
dc53b7b
Schema support (option) to mirror psql version
c52d421
Another chunk of dead code
2d3ef83
Big bug in DatetimeDiff implementation!
a173fd0
Adding missing fluid_balance views
f10eeb4
missed deletion
3aefb39
Rename in line with Postgres
0645b6c
Adding indexes
06a7422
Added checks
212f8bd
Updating README.md
f7a9729
Missed file rename
d4b5426
Move fake CHARTEVENTS PK to indexes script -- this may fail on machin…
SphtKr 6bdcf14
Fixed outright errors
71e8d54
Experimental option to use integer or fractional DATETIME_DIFF function
2854015
simplify parse to use DATETIME_TRUNC and use unique alias
alistairewj 4166507
explicitly cast seconds to integer
alistairewj b918099
move duckdb concept file to new python package folder
alistairewj 62f4f59
tidy up readme and update to v2.2
alistairewj c79355a
init python package to support converting SQL scripts across dialects
alistairewj ae7a4c0
add step to test mimic_utils
alistairewj 24de255
remove unneeded duckdb concept files
alistairewj f2f9148
move sqlglot monkey patching to individual modules
alistairewj 3b133f8
reorganize classes to top
alistairewj 12bdf7e
init duckdb transforms
alistairewj 0654e16
add mimic_utils module name to import
alistairewj 084a15f
add duckdb to transpilation
alistairewj 7d54f86
remove semi-colon
alistairewj dcb8cc0
explicitly cast upper limit of generate series as an integer
alistairewj eec813b
add derived schema name to scripts by default
alistairewj 1bcceb0
rename subfolder as it contains sqlglot transformations
alistairewj 1ff7f57
update import
alistairewj 9d2d4dc
refactor mimic-iv SQL queries into subfolders of concepts
alistairewj 24d177b
formatting fixes by sqlfluff
alistairewj 7487bbe
update postgres concepts with new transpile method
alistairewj 51c6c4f
add duckdb concepts for mimic-iv
alistairewj 7bb12b8
update README for mimic-iv
alistairewj 9b083be
add help text for the mimic_utils entry points
alistairewj f1f07b8
switch to hatchling backend and only include mimic_utils package
alistairewj ad08bae
readme for pypi package
alistairewj f826074
various typo fixes and clearer language
alistairewj 1dfa41c
add setup python to workflow
alistairewj 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# mimic_utils package | ||
|
||
This package contains utilities for working with the MIMIC datasets. |
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.
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.