-
Notifications
You must be signed in to change notification settings - Fork 441
impl(bq_driver): Picosecond support #15925
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,6 +100,7 @@ struct JobConfig : public Config { | |
| int start_index = 0; | ||
| int timeout_ms; | ||
| bool use_int64_timestamp; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can't remove an existing variable like this
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reverted |
||
| std::string timestamp_output_format; | ||
|
|
||
| bigquery_v2_minimal_internal::Projection projection; | ||
| bigquery_v2_minimal_internal::StateFilter state_filter; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -343,6 +343,7 @@ std::string DataFormatOptions::DebugString(absl::string_view name, | |
| int indent) const { | ||
| return internal::DebugFormatter(name, options, indent) | ||
| .Field("use_int64_timestamp", use_int64_timestamp) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. int64 functionality should not be removed
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reverted |
||
| .Field("timestamp_output_format",timestamp_output_format) | ||
| .Build(); | ||
| } | ||
|
|
||
|
|
||
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 parser for
--timestamp-output-formataccepts any string value, but the comment on line 363 (// or validate v == "ISO8601_STRING") suggests that only specific values should be allowed. To improve robustness, please add validation to ensure the provided value is one of the supported timestamp formats. An error should be reported for invalid inputs.