Skip to content

Conversation

pdet
Copy link
Contributor

@pdet pdet commented Jan 15, 2025

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) ||
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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 :-)

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
Copy link
Contributor

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)

Copy link
Contributor Author

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?

@duckdb-draftbot duckdb-draftbot marked this pull request as draft January 16, 2025 11:16
@pdet pdet marked this pull request as ready for review January 16, 2025 13:43
@Mytherin Mytherin merged commit f7f11ba into duckdb:main Feb 6, 2025
53 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Feb 6, 2025

Thanks!

Antonov548 added a commit to Antonov548/duckdb-r that referenced this pull request Feb 26, 2025
krlmlr pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 5, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 17, 2025
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
@pdet pdet deleted the sniff_timestamptz branch May 28, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants