Skip to content

Commit fda3987

Browse files
committed
Split the parameters test in ITQueryTest into supported + currently-unsupported tests.
1 parent 34a10e2 commit fda3987

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITQueryTest.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,12 +529,27 @@ public void bindInt64ArrayNull() {
529529
}
530530

531531
@Test
532-
@Ignore
533-
// Fails due to backend issues. Should be resolved soon.
534532
public void bindFloat32Array() {
535533
assumeFalse("Emulator does not support FLOAT32 yet", isUsingEmulator());
536534
assumeTrue("FLOAT32 is currently only supported in cloud-devel", isUsingCloudDevel());
537535

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+
538553
Struct row =
539554
execute(
540555
Statement.newBuilder(selectValueQuery)

0 commit comments

Comments
 (0)