Skip to content

Commit 19021a8

Browse files
committed
chore: Fix timestamp precision check condition
1 parent 37c2fab commit 19021a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BQTableSchemaToProtoDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static FieldDescriptorProto convertBQTableFieldToProtoField(
228228
}
229229
// This should never happen as this is a server response issue. If this is the case,
230230
// warn the user and use INT64 as the default is microsecond precision.
231-
if (timestampPrecision != 6L || timestampPrecision != 0L) {
231+
if (timestampPrecision != 6L && timestampPrecision != 0L) {
232232
LOG.warning(
233233
"BigQuery Timestamp field "
234234
+ BQTableField.getName()

0 commit comments

Comments
 (0)