You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/FieldValue.java
+21-3Lines changed: 21 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@
24
24
importcom.google.common.base.MoreObjects;
25
25
importcom.google.common.io.BaseEncoding;
26
26
importjava.io.Serializable;
27
+
importjava.math.BigDecimal;
27
28
importjava.util.List;
28
29
importjava.util.Map;
29
30
importjava.util.Objects;
@@ -48,7 +49,8 @@ public enum Attribute {
48
49
* A primitive field value. A {@code FieldValue} is primitive when the corresponding field has
49
50
* type {@link LegacySQLTypeName#BYTES}, {@link LegacySQLTypeName#BOOLEAN},
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,11 @@ public LegacySQLTypeName apply(String constant) {
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryParameterValue.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@
24
24
importcom.google.common.collect.Lists;
25
25
importcom.google.common.io.BaseEncoding;
26
26
importjava.io.Serializable;
27
+
importjava.math.BigDecimal;
27
28
importjava.util.ArrayList;
28
29
importjava.util.List;
29
30
importjavax.annotation.Nullable;
@@ -47,6 +48,7 @@
47
48
* <li>Long: StandardSQLTypeName.INT64
48
49
* <li>Double: StandardSQLTypeName.FLOAT64
49
50
* <li>Float: StandardSQLTypeName.FLOAT64
51
+
* <li>BigDecimal: StandardSQLTypeName.NUMERIC
50
52
* </ul>
51
53
*
52
54
* <p>No other types are supported through that entry point. The other types can be created by
@@ -164,6 +166,11 @@ public static QueryParameterValue float64(Float value) {
164
166
returnof(value, StandardSQLTypeName.FLOAT64);
165
167
}
166
168
169
+
/** Creates a {@code QueryParameterValue} object with a type of NUMERIC. */
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardSQLTypeName.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ public enum StandardSQLTypeName {
29
29
INT64,
30
30
/** A 64-bit IEEE binary floating-point value. */
31
31
FLOAT64,
32
+
/** A decimal value with 38 digits of precision and 9 digits of scale. */
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueListTest.java
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ public class FieldValueListTest {
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryParameterValueTest.java
0 commit comments