bug: TIME field from EXPORT TO CSV will fail on IMPORT with could not parse "0000-01-01 12:03:00+00:00" as type time #42749
Labels
A-sql-builtins
SQL built-in functions and semantics thereof.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-support
Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs
Describe the problem
Table having TIME field on EXPORT to CSV will fail parsing on IMPORT to TIME field with
could not parse "0000-01-01 12:03:00+00:00" as type time
Please describe the issue you observed, and any steps we can take to reproduce it:
To Reproduce
create a table using
Then export the table using
./cockroach sql --insecure -e "SELECT * from test;" --format=csv > exported.csv
Then, import the table using the following:
What did you do? Describe in your own words.
If possible, provide steps to reproduce the behavior:
Expected behavior
The original dataset contains
5:42 PM
as field for time. On export the data looks like so0000-01-01 17:42:00+00:00
Additional data / screenshots
If the problem is SQL-related, include a copy of the SQL query and the schema
of the supporting tables.
If a node in your cluster encountered a fatal error, supply the contents of the
log directories (at minimum of the affected node(s), but preferably all nodes).
Note that log files can contain confidential information. Please continue
creating this issue, but contact [email protected] to submit the log
files in private.
If applicable, add screenshots to help explain your problem.
Environment:
Additional context
customer cannot continue doing schema change
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: