-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add portable Date type #37830
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
base: master
Are you sure you want to change the base?
Add portable Date type #37830
Changes from all commits
5e3d5f3
957a702
6a52c08
6d40be2
07d191d
d4883ab
109ae96
4847d97
fe8b312
1d3195b
c6a961e
d4912a2
1364954
883cecf
d0c999f
08d9fed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run", | ||
| "modification": 16 | ||
| "modification": 1 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run", | ||
| "modification": 0 | ||
| "modification": 1 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "comment": "Modify this file in a trivial way to cause this test suite to run", | ||
| "modification": 2 | ||
| "modification": 3 | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -360,6 +360,9 @@ def __init__( | |||||||
| of the output PCollection elements. This bypasses automatic | ||||||||
| schema inference during pipeline construction. | ||||||||
| """ | ||||||||
| # override new portable Date type with the current Jdbc type | ||||||||
| # TODO: switch JdbcIO to return portable Date type | ||||||||
| LogicalType.register_logical_type(JdbcDateType) | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we need it again, we may want to put it into @contextlib.contextmanager beam/sdks/python/apache_beam/io/jdbc.py Line 262 in 4769488
In fact we can add Date to the same try block here
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some jdbc tests fail if I move into that contextmanager. It seems like we need to register this type regardless if schema is passed or not: beam/sdks/python/apache_beam/io/jdbc.py Lines 366 to 367 in 4769488
|
||||||||
| classpath = classpath or DEFAULT_JDBC_CLASSPATH | ||||||||
|
|
||||||||
| dataSchema = None | ||||||||
|
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.