From c31787d3b2e5bbea9b8b38abd07226897eeb1dd8 Mon Sep 17 00:00:00 2001 From: David Sisson Date: Thu, 12 Sep 2024 00:50:26 -0700 Subject: [PATCH] ran format --- .../tests/BinaryToTextPlanConversionTest.cpp | 71 +++++++++---------- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/src/substrait/textplan/converter/tests/BinaryToTextPlanConversionTest.cpp b/src/substrait/textplan/converter/tests/BinaryToTextPlanConversionTest.cpp index de45c0e5..d140d6f9 100644 --- a/src/substrait/textplan/converter/tests/BinaryToTextPlanConversionTest.cpp +++ b/src/substrait/textplan/converter/tests/BinaryToTextPlanConversionTest.cpp @@ -607,42 +607,41 @@ std::vector getTestCases() { measures { measure { output_type { i32 {} } arguments { value { selection { direct_reference { struct_field { field: 1 } } } } } } } measures { measure { output_type { i32 {} } arguments { value { selection { direct_reference { struct_field { field: 0 } } } } } } } } } } })", - AllOf( - WhenSerialized(EqSquashingWhitespace( - "pipelines {\n" - " read -> aggregate -> root;\n" - "}\n" - "\n" - "read relation read {\n" - " source local;\n" - " base_schema schema;\n" - "}\n" - "\n" - "aggregate relation aggregate {\n" - " measure {\n" - " measure sum(schema.b)->i32@AGGREGATION_PHASE_UNSPECIFIED NAMED measurename;\n" - " }\n" - " measure {\n" - " measure sum(schema.a)->i32@AGGREGATION_PHASE_UNSPECIFIED NAMED measurename2;\n" - " }\n" - "\n" - " emit measurename2;\n" - "}\n" - "\n" - "schema schema {\n" - " a string;\n" - " b i32;\n" - "}\n" - "\n" - "source local_files local {\n" - " items = [\n" - " {uri_file: \"x.parquet\" parquet: {}}\n" - " ]\n" - "}\n" - "\n" - "extension_space {\n" - " function sum:i32 as sum;\n" - "}\n"))), + AllOf(WhenSerialized(EqSquashingWhitespace( + "pipelines {\n" + " read -> aggregate -> root;\n" + "}\n" + "\n" + "read relation read {\n" + " source local;\n" + " base_schema schema;\n" + "}\n" + "\n" + "aggregate relation aggregate {\n" + " measure {\n" + " measure sum(schema.b)->i32@AGGREGATION_PHASE_UNSPECIFIED NAMED measurename;\n" + " }\n" + " measure {\n" + " measure sum(schema.a)->i32@AGGREGATION_PHASE_UNSPECIFIED NAMED measurename2;\n" + " }\n" + "\n" + " emit measurename2;\n" + "}\n" + "\n" + "schema schema {\n" + " a string;\n" + " b i32;\n" + "}\n" + "\n" + "source local_files local {\n" + " items = [\n" + " {uri_file: \"x.parquet\" parquet: {}}\n" + " ]\n" + "}\n" + "\n" + "extension_space {\n" + " function sum:i32 as sum;\n" + "}\n"))), }, }; return cases;