File size: 1,697 Bytes
d0faac4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | diff --git a/cpp/src/parquet/schema_test.cc b/cpp/src/parquet/schema_test.cc
--- a/cpp/src/parquet/schema_test.cc
+++ b/cpp/src/parquet/schema_test.cc
@@ -1587,8 +1587,17 @@ TEST(TestLogicalTypeOperation, LogicalTypeRepresentation) {
for (const ExpectedRepresentation& c : cases) {
ASSERT_STREQ(c.logical_type->ToString().c_str(), c.string_representation);
ASSERT_STREQ(c.logical_type->ToJSON().c_str(), c.JSON_representation);
}
}
+TEST(TestLogicalTypeOperation, GeospatialJsonRepresentationAugmented) {
+ EXPECT_EQ(R"({"Type": "Geometry", "crs": "srid:4326"})",
+ LogicalType::Geometry("srid:4326")->ToJSON());
+ EXPECT_EQ(R"({"Type": "Geography", "crs": "srid:4326", "algorithm": "vincenty"})",
+ LogicalType::Geography(
+ "srid:4326", LogicalType::EdgeInterpolationAlgorithm::VINCENTY)
+ ->ToJSON());
+}
+
TEST(TestLogicalTypeOperation, LogicalTypeSortOrder) {
// Ensure that each logical type reports the correct sort order
diff --git a/cpp/src/parquet/lolbench_augmented_selectors.txt b/cpp/src/parquet/lolbench_augmented_selectors.txt
new file mode 100644
index 0000000000..1111111111
--- /dev/null
+++ b/cpp/src/parquet/lolbench_augmented_selectors.txt
@@ -0,0 +1,7 @@
+LoLBench augmented selector marker for Apache-Arrow PR-45459.
+
+The augmented F2P suite selects public geospatial tests from the hidden
+eval_tests.patch and one focused JSON representation test added by this patch.
+They exercise documented Parquet GEOMETRY/GEOGRAPHY logical-type behavior
+through schema, Arrow schema conversion, and Arrow Parquet reader/writer
+surfaces without calling newly added internal helper functions or classes.
|