Commit befe9ce
transformations - updates (#2718)
* rename flag for executing raw queries to "execute_raw_query"
* return sge queries from the internal _query method which removes a lot of unneeded transpiling
clean up make_transformation function
tests still pending
* adds some tests to readable dataset and a test for column hint merging
* allows any dialect when writing queries and fixes tests
* update docs and set correct quoting to queries in normalization and load stage
* fixes normalizer tests
* fix limit on mssql
normalize aliases in normalization step
* add missing quote to alias
* revert identifier normalization step in normalizer_query and use bigquery compiler for bigquery destinations
* post rebase fix
* smallish pr fixes
* add materializable sqlmodel and handle hints in extractor
* add and test always_materialize setting
* add test for sql transformation type
* convert transformation functions to need yield instead of return
* migrate tests and docs snippets to yield in transformations
* add simple test for materializable model
* use correct compiler for converting ibis into sqlglot for each dialect
fixes on transformation test
* add first simple version of using unbound ibis tables in transformations
* skip ibis test on python 3.9
* fix query building in new relation
* return a "real" relation from a transformation
* add ibis option when getting table from dataset
natively support unbound ibis tables in transformations and when getting relations from dataset
* update model item format tests to use relation
* * remove one unneeded test (same thing is already tested in transformations)
* fix wei conversion in linneage
* adds support for adding resource hints to pyarrow items
* switch most read access tests to default dataset
* update datasets and transformations docs pages
* separate ibis and default dbapi datasets and fix typing
* update transformation tests and small typing fixes for updated datasets
* fix default dataset type
* fix wei sqlglot conversion
* add sqlglot dialect type and some cleanup
* fix dataset snippets
* fix sqlglot schema test
* removes ibis relation and dataset
consolidates relation and dataset baseclasses with implementations
updates interfaces/protocols fro relation and dataset and makes those the publicly available interface with "Relation" and "Dataset"
remove query method from relation interface
* fix one doc snippet
* rename dataset and relation interfaces
* fix relation ship between cursor and relation, remove function wiring hack in favor of explicit forwarding for better typing
* clean up readablerelation (no actual code changes)
* fix str test to assume pretty sql (which it is now)
fix one transformation snippet
* small changes from review comments:
* query method on dataset
* typing update of table method
* rename query method to "to_sql" on relation
* clean up transform function a bit (could maybe be even better=
reject non-sql strings in transformation to not shadow errors
* add support for "non-generator" transformations
* move hints computation into resource class
* smallish PR fixes
* add support for dynamic hints in transformations
-> this allows to have multiple relations with different schemas in the relation, so this is allowed now too
* fixes dynamic table caching
* Enhances ReadableDBAPIRelation: min/max, filter with expression (#2833)
* Min max, filter with expr_or_string
* Fix in min max test
* Overload fix and docs
* Test read interfaces partially uses default relation max
* prevent sqglot schema from adding default hints info, only allow parametrized types and don't supply hints if none are present in dlt schema
* make multi schema transformations work again
* move model item format tests to transformations folder
* re-order interface tests and fix playground dataset access
* PR review test updated
* update dataset and transformation pages
* update transformations tests to new fruitshop
* Last PR fixes
* update columns_schema property
---------
Co-authored-by: Marcin Rudolf <rudolfix@rudolfix.org>
Co-authored-by: anuunchin <88698977+anuunchin@users.noreply.github.com>1 parent ffa88a3 commit befe9ce
File tree
60 files changed
+2028
-1658
lines changed- .github/workflows
- dlt
- common
- data_writers
- destination
- libs
- destinations
- dataset
- impl
- mssql
- sqlalchemy
- extract
- helpers
- studio
- normalize
- pipeline
- transformations
- docs
- notebooks/playground
- website/docs/general-usage
- dataset-access
- dataset_snippets
- transformations
- tests
- destinations
- extract
- libs
- load
- pipeline
- transformations
- normalize
- pipeline
- transformations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
60 files changed
+2028
-1658
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
203 | 196 | | |
204 | 197 | | |
205 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments