You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by bc...@apache.org on 2024/10/21 20:13:37 UTC
(incubator-baremaps) 04/04: Fix deprecation notices
This is an automated email from the ASF dual-hosted git repository.
bchapuis pushed a commit to branch geoparquet-writer
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
commit 7888582e7b8b0400e16915a94f45390162c2b86c
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Mon Oct 21 22:00:23 2024 +0200
Fix deprecation notices
---
.../org/apache/baremaps/geoparquet/GeoParquetWriterTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/baremaps-geoparquet/src/test/java/org/apache/baremaps/geoparquet/GeoParquetWriterTest.java b/baremaps-geoparquet/src/test/java/org/apache/baremaps/geoparquet/GeoParquetWriterTest.java
index fc20d3ff4..98ccd5248 100644
--- a/baremaps-geoparquet/src/test/java/org/apache/baremaps/geoparquet/GeoParquetWriterTest.java
+++ b/baremaps-geoparquet/src/test/java/org/apache/baremaps/geoparquet/GeoParquetWriterTest.java
@@ -21,14 +21,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.IOException;
-import java.util.Arrays;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
import org.apache.baremaps.geoparquet.GeoParquetMetadata.Column;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
+import org.apache.parquet.schema.LogicalTypeAnnotation;
import org.apache.parquet.schema.MessageType;
-import org.apache.parquet.schema.OriginalType;
import org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName;
import org.apache.parquet.schema.Types;
import org.junit.jupiter.api.Tag;
@@ -49,8 +49,8 @@ class GeoParquetWriterTest {
try {
// Define the Parquet schema
MessageType schema = Types.buildMessage()
- .required(PrimitiveTypeName.BINARY).as(OriginalType.UTF8).named("name")
- .required(PrimitiveTypeName.BINARY).as(OriginalType.UTF8).named("city")
+ .required(PrimitiveTypeName.BINARY).as(LogicalTypeAnnotation.stringType()).named("name")
+ .required(PrimitiveTypeName.BINARY).as(LogicalTypeAnnotation.stringType()).named("city")
.optional(PrimitiveTypeName.BINARY).named("geometry")
.named("GeoParquetSchema");
@@ -58,7 +58,7 @@ class GeoParquetWriterTest {
Map<String, Column> columns = new HashMap<>();
columns.put("geometry", new GeoParquetMetadata.Column(
"WKB",
- Arrays.asList("Point"),
+ List.of("Point"),
null,
null,
null,