Skip to content
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

Fail to import columns as DateTimeOffset #23988

Closed
michaeldaw opened this issue Jul 26, 2023 · 2 comments
Closed

Fail to import columns as DateTimeOffset #23988

michaeldaw opened this issue Jul 26, 2023 · 2 comments

Comments

@michaeldaw
Copy link

  • Azure Data Studio Version: 1.44.1 user setup
  • OS Version: Windows 11

Steps to Reproduce:

  1. Use a CSV file with a column intended to be of type DateTimeOffset with the format '2023-06-01T:13:00:00-4:00'
  2. Attempt to import the file, indicating that the column is of type DateTimeOffset(7)

The following exception is thrown:

---> System.InvalidOperationException: The given value '2023-06-01T:13:00:00-4:00' of type String from the data source cannot be converted to type datetimeoffset for Column <<column index and name>>.

The indicated value is definitely a DateTimeOffset. It should convert.

Does this issue occur when all extensions are disabled?: Yes/No
No. This is regarding the Sql Server Import extension

The support link for the extension links to this repo.

@ckaczor
Copy link
Contributor

ckaczor commented Oct 12, 2023

Maybe I'm not familiar with some edge case of the DateTimeOffset serialization format but is "2023-06-01T:13:00:00-4:00" a valid format? I'm pretty sure the extra colon after the T is not correct. If I try to use "2023-06-01T13:00:00-4:00" (removing the extra colon) then the import works correctly for me.

@michaeldaw
Copy link
Author

In light of @ckaczor comment, this looks like a mistake on my part. I'm not sure how I let that extra colon in there, but ckaczor is correct.
This should probably be closed and ignored.
Apologies for time spent pursuing it.

@cheenamalhotra cheenamalhotra closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2023
@github-project-automation github-project-automation bot moved this from Up for Grabs to Done in ADS Core Committer and Fundamentals Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants