Skip to content

Commit

Permalink
ran format
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Sep 12, 2024
1 parent 8a62ae6 commit c31787d
Showing 1 changed file with 35 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,42 +607,41 @@ std::vector<TestCase> 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;
Expand Down

0 comments on commit c31787d

Please sign in to comment.