-
Notifications
You must be signed in to change notification settings - Fork 986
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
MongoDbToBigQuery - ISO standard for date and time #2132
base: main
Are you sure you want to change the base?
Conversation
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.
Thank you for the fix! Left a few comment.
@@ -119,7 +141,8 @@ public static Document getMongoDbDocument(String uri, String dbName, String coll | |||
return doc; | |||
} | |||
|
|||
public static TableRow getTableSchema(Document document, String userOption) { | |||
public static TableRow getTableSchema( |
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.
Could you please add a unit test for legacy / iso time format?
order = 2, | ||
optional = true, | ||
description = "Use legacy time format.", | ||
helpText = |
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.
The description is "use legacy time format" but the option name is "useIsoTimeFormat". The helpText (default is true) is also not true. Please fix.
We have noticed that the format of dates and timestamp are broken, compared to the mongodb fields, e.g. a date appears as "Mar 12, 2024, 3:05:34 AM", instead of the original ISO format
This PR fixes the issue, thanks !