You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by yu...@apache.org on 2025/05/02 21:52:12 UTC

(polaris) branch main updated: Avoid using deprecated `NestedField.of()` (#1514)

This is an automated email from the ASF dual-hosted git repository.

yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new a8c8a0d68 Avoid using deprecated `NestedField.of()` (#1514)
a8c8a0d68 is described below

commit a8c8a0d689cc2ca90420e69ce5a439cc136a214b
Author: Dmitri Bourlatchkov <dm...@dremio.com>
AuthorDate: Fri May 2 17:52:09 2025 -0400

    Avoid using deprecated `NestedField.of()` (#1514)
---
 .../polaris/service/it/test/PolarisPolicyServiceIntegrationTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisPolicyServiceIntegrationTest.java b/integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisPolicyServiceIntegrationTest.java
index 2b833ba74..6166d5d65 100644
--- a/integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisPolicyServiceIntegrationTest.java
+++ b/integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisPolicyServiceIntegrationTest.java
@@ -372,7 +372,7 @@ public class PolarisPolicyServiceIntegrationTest {
 
     restCatalog
         .buildTable(
-            NS2_T1, new Schema(Types.NestedField.of(1, true, "string", Types.StringType.get())))
+            NS2_T1, new Schema(Types.NestedField.optional(1, "string", Types.StringType.get())))
         .create();
 
     PolicyAttachmentTarget catalogTarget =