-
Notifications
You must be signed in to change notification settings - Fork 1.1k
BigQuery: Fix support standard java date in QueryParameterValue classToType #4489
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4489 +/- ##
============================================
+ Coverage 49.16% 49.16% +<.01%
- Complexity 21913 21917 +4
============================================
Files 2078 2078
Lines 207048 207059 +11
Branches 24084 24086 +2
============================================
+ Hits 101789 101799 +10
- Misses 97116 97117 +1
Partials 8143 8143
Continue to review full report at Codecov.
|
| DateTimeFormatter.ofPattern("HH:mm:ss.SSSSSS"); | ||
| private static final DateTimeFormatter datetimeFormatter = | ||
| DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSSSSS"); | ||
| private static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
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.
Please use DateTimeFormatter instead of the java standard format.
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.
DateTimeFormatter is only available after java 8.
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.
Please see line 72.
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.
Updated to remove formatter and replaced with utility method from google cloud date. Sorry I misread your comment earlier and though of jdk8s datetimeformatter.
8383bdf to
888fdc6
Compare
Fixes #3589 com.google.cloud.bigquery.QueryParameterValue classToType should support standard Java