-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fixes #27950: [Datalake] JSON columns incorrectly typed as STRING for empty dict values #27951
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
+380
−20
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c14e05b
fix: datalake JSON columns incorrectly typed as STRING for empty dict…
mohittilala f17df88
fix: wrap df_row_val with str() for strptime and parse calls to satis…
mohittilala afd7898
fix: address static check type errors and review comments in datalake…
mohittilala a0f0f01
Restore debug logging, fix dead-code fallback, strengthen tests
mohittilala 6ab38c8
Replace lexicographic max() with explicit type precedence in fetch_co…
mohittilala 942925e
Merge branch 'main' into fix/datalake-json-column-type-detection
mohittilala 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
Some comments aren't visible on the classic Files Changed page.
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,37 @@ | ||
| { | ||
| "metadata": { | ||
| "dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", | ||
| "dbt_version": "1.5.0", | ||
| "generated_at": "2024-01-01T00:00:00.000000Z", | ||
| "invocation_id": "abc-123", | ||
| "env": {} | ||
| }, | ||
| "nodes": { | ||
| "model.my_project.customers": { | ||
| "metadata": {"type": "VIEW", "schema": "public", "name": "customers"}, | ||
| "columns": { | ||
| "customer_id": {"type": "integer", "index": 1, "name": "customer_id"}, | ||
| "name": {"type": "text", "index": 2, "name": "name"} | ||
| }, | ||
| "stats": {}, | ||
| "unique_id": "model.my_project.customers" | ||
| }, | ||
| "model.my_project.orders": { | ||
| "metadata": {"type": "VIEW", "schema": "public", "name": "orders"}, | ||
| "columns": { | ||
| "order_id": {"type": "integer", "index": 1, "name": "order_id"} | ||
| }, | ||
| "stats": {}, | ||
| "unique_id": "model.my_project.orders" | ||
| } | ||
| }, | ||
| "sources": { | ||
| "source.my_project.raw.customers": { | ||
| "metadata": {"type": "TABLE", "schema": "raw", "name": "customers"}, | ||
| "columns": {}, | ||
| "stats": {}, | ||
| "unique_id": "source.my_project.raw.customers" | ||
| } | ||
| }, | ||
| "errors": null | ||
| } |
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,42 @@ | ||
| { | ||
| "metadata": { | ||
| "dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11/manifest.json", | ||
| "dbt_version": "1.5.0", | ||
| "generated_at": "2024-01-01T00:00:00.000000Z", | ||
| "invocation_id": "abc-123", | ||
| "env": {}, | ||
| "project_name": "my_project", | ||
| "project_id": "xyz", | ||
| "adapter_type": "postgres", | ||
| "credential_id": null, | ||
| "profile_name": "my_profile" | ||
| }, | ||
| "nodes": { | ||
| "model.my_project.customers": { | ||
| "name": "customers", | ||
| "description": "Customer records", | ||
| "unique_id": "model.my_project.customers", | ||
| "fqn": ["my_project", "customers"] | ||
| } | ||
| }, | ||
| "sources": { | ||
| "source.my_project.raw.customers": { | ||
| "name": "customers", | ||
| "description": "Raw customer data", | ||
| "unique_id": "source.my_project.raw.customers" | ||
| } | ||
| }, | ||
| "macros": {}, | ||
| "docs": {}, | ||
| "exposures": {}, | ||
| "metrics": {}, | ||
| "groups": {}, | ||
| "selectors": {}, | ||
| "disabled": {}, | ||
| "parent_map": {}, | ||
| "child_map": {}, | ||
| "group_map": {}, | ||
| "saved_queries": {}, | ||
| "semantic_models": {}, | ||
| "unit_tests": {} | ||
| } |
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.