From 1dea3abec7b8ea80a1d59e0f4fa8adf4cd878212 Mon Sep 17 00:00:00 2001 From: larkee Date: Wed, 11 Dec 2024 16:39:15 +1100 Subject: [PATCH] fix: set the correct TypeCode --- .../com/google/cloud/executor/spanner/CloudClientExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java index 07e0b894c1..219b795b67 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java @@ -3117,7 +3117,7 @@ private com.google.spanner.executor.v1.ValueList buildStruct(StructReader struct } value.setArrayValue(builder.build()); value.setArrayType( - com.google.spanner.v1.Type.newBuilder().setCode(TypeCode.JSON).build()); + com.google.spanner.v1.Type.newBuilder().setCode(TypeCode.STRUCT).build()); } break; default: