-
Couldn't load subscription status.
- Fork 2.7k
Sniff Timestamp_TZ from CSV FIles #15730
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
Conversation
| cur_top_candidate == LogicalType::TIME || cur_top_candidate == LogicalType::TIMESTAMP)) { | ||
| cur_top_candidate == LogicalType::TIME || | ||
| (cur_top_candidate == LogicalType::TIMESTAMP && | ||
| col_type_candidates[col_type_candidates.size() - 2] != LogicalType::TIMESTAMP_TZ) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can there be only one candidate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LogicalType::VARCHAR is always guaranteed to exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add an assertion though :-)
data/csv/timestamp_timezone.csv
Outdated
| 2020-01-01T00:00:00-08,midnight in San Francisco | ||
| 2020-01-01T00:00:00+00,midnight UTC +00 | ||
| 2020-01-01T00:00:00Z,midnight UTC Z | ||
| 2020-01-01T00:00:00+08:00,midnight in Taipei No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always fun to include fractional hours for this stuff (Asia/Kolkata +05:30:00, Pacific/Chatham +13:45, Canada/Newfoundland -03:30:00)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to check if I got your comment right,
I should add:
2020-01-01T00:00:00+05:30:00,Asia/Kolkata
2020-01-01T00:00:00+13:45, Pacific/Chatham
2020-01-01T00:00:00 -03:30:00,Canada/Newfoundland
to the CSV file, right?
|
Thanks! |
Sniff Timestamp_TZ from CSV FIles (duckdb/duckdb#15730)
Sniff Timestamp_TZ from CSV FIles (duckdb/duckdb#15730)
Sniff Timestamp_TZ from CSV FIles (duckdb/duckdb#15730)
Sniff Timestamp_TZ from CSV FIles (duckdb/duckdb#15730)
Sniff Timestamp_TZ from CSV FIles (duckdb/duckdb#15730)
Sniff Timestamp_TZ from CSV FIles (duckdb/duckdb#15730)
Fix: https://github.com/duckdblabs/duckdb-internal/issues/1599