File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
google-cloud-spanner/src/test/java/com/google/cloud/spanner/it Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -529,12 +529,27 @@ public void bindInt64ArrayNull() {
529
529
}
530
530
531
531
@ Test
532
- @ Ignore
533
- // Fails due to backend issues. Should be resolved soon.
534
532
public void bindFloat32Array () {
535
533
assumeFalse ("Emulator does not support FLOAT32 yet" , isUsingEmulator ());
536
534
assumeTrue ("FLOAT32 is currently only supported in cloud-devel" , isUsingCloudDevel ());
537
535
536
+ Struct row =
537
+ execute (
538
+ Statement .newBuilder (selectValueQuery )
539
+ .bind ("p1" )
540
+ .toFloat32Array (asList (null , 1.0f , 2.0f )),
541
+ Type .array (Type .float32 ()));
542
+ assertThat (row .isNull (0 )).isFalse ();
543
+ assertThat (row .getFloatList (0 )).containsExactly (null , 1.0f , 2.0f ).inOrder ();
544
+ }
545
+
546
+ // TODO: Merge this with bindFloat32Array after the fix.
547
+ @ Ignore ("Waiting for a backend fix." )
548
+ @ Test
549
+ public void bindFloat32ArrayNonNumbers () {
550
+ assumeFalse ("Emulator does not support FLOAT32 yet" , isUsingEmulator ());
551
+ assumeTrue ("FLOAT32 is currently only supported in cloud-devel" , isUsingCloudDevel ());
552
+
538
553
Struct row =
539
554
execute (
540
555
Statement .newBuilder (selectValueQuery )
You can’t perform that action at this time.
0 commit comments