-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for more value types in TrinoBatchInsert #24
Conversation
Seems needed by Trino: Works: ('Exelon Corp.', 'Commonwealth Edison Co.', 32, TIMESTAMP '2015-01-01 00:00:00', 'nuclear', 'non_fuel_operation_expenses', 'electric expenses', 0.0, 0.0) Fails: ('Exelon Corp.', 'Commonwealth Edison Co.', 32, 2015-01-01 00:00:00, 'nuclear', 'non_fuel_operation_expenses', 'electric expenses', 0.0, 0.0) Signed-off-by: MichaelTiemannOSC <mtiemann@os-climate.org>
c00316a
to
aeef21c
Compare
I reviewed the log but don't understand what is causing the failure. The test code I see looks innocuous. |
You have to pay the formatter troll a coin. Use |
Use isort to put dependencies in proper order. Signed-off-by: MichaelTiemannOSC <mtiemann@os-climate.org>
ba17741
to
71f7862
Compare
Trino prefers to see NaN as nan() Signed-off-by: MichaelTiemannOSC <mtiemann@os-climate.org>
And also handle things that are math.isnan correctly. Signed-off-by: MichaelTiemannOSC <mtiemann@os-climate.org>
Corrected. Signed-off-by: MichaelTiemannOSC <mtiemann@os-climate.org>
We need to add timestamp and NaN values to unit tests, to verify they are being output in the way you expect |
Support non-finite floats, in case needed. The SQL spelling of nan, inf, and -inf is different. Signed-off-by: MichaelTiemannOSC <mtiemann@os-climate.org>
It's "boolean" in SQL-land. Signed-off-by: MichaelTiemannOSC <mtiemann@os-climate.org>
Signed-off-by: Erik Erlandson <eerlands@redhat.com>
Seems needed by Trino:
Works:
('Exelon Corp.', 'Commonwealth Edison Co.', 32, TIMESTAMP '2015-01-01 00:00:00', 'nuclear', 'non_fuel_operation_expenses', 'electric expenses', 0.0, 0.0)
Fails:
('Exelon Corp.', 'Commonwealth Edison Co.', 32, 2015-01-01 00:00:00, 'nuclear', 'non_fuel_operation_expenses', 'electric expenses', 0.0, 0.0)