From f66f6cddd4e417c5dced3b9d936f425c88623a70 Mon Sep 17 00:00:00 2001 From: Farhan Ahmed Date: Wed, 26 Jul 2023 14:56:52 -0400 Subject: [PATCH] fix: SearchStats IndexUnusedReasons null bug --- .../java/com/google/cloud/bigquery/it/ITBigQueryTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 8c5742e57d..9959cde45f 100644 --- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -5109,6 +5109,11 @@ public void testQueryJobWithSearchReturnsSearchStatistics() throws InterruptedEx JobStatistics.QueryStatistics stats = remoteJob.getStatistics(); assertNotNull(stats.getSearchStats()); assertEquals(stats.getSearchStats().getIndexUsageMode(), "UNUSED"); + + System.out.println("Penguins"); + System.out.println(stats.getSearchStats().getIndexUnusedReasons()); + System.out.println("Horses"); + } finally { bigquery.delete(destinationTable); }