Uh oh!
There was an error while loading. Please reload this page.
BigQuery: Fix support standard java date in QueryParameterValue classToType - #4489
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.
Please use DateTimeFormatter instead of the java standard format.
There was a problem hiding this comment.
DateTimeFormatter is only available after java 8.
There was a problem hiding this comment.
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
888fdc6Compare
Fixes#3589 com.google.cloud.bigquery.QueryParameterValue classToType should support standard Java