Skip to content

Commit f306c00

Browse files
committed
query_details parser: Elide EOL
1 parent 231f5cd commit f306c00

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

presto/plan_node/details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var (
4141
PlanNodeDetailParserOptions = []participle.Option{
4242
participle.Lexer(planNodeDetailLexer),
4343
participle.CaseInsensitive("DataType", "Cast", "As"),
44-
participle.Elide("Whitespace"),
44+
participle.Elide("Whitespace", "EOL"),
4545
participle.Union[Value](
4646
&HiveColumnHandle{},
4747
&FunctionCall{},

presto/plan_node/details_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ func TestParseAssignment(t *testing.T) {
179179
`array_agg_51 := "presto.default.array_agg"((name_35)) ORDER BY OrderingScheme {orderBy='[Ordering {variable='name_35', sortOrder='ASC_NULLS_LAST'}]', orderings='{name_35=ASC_NULLS_LAST}'} (6:21)`,
180180
`branded_car_enrollment.target_id := car_id (22:5)`,
181181
`expr_5 := ((b) + (INTEGER'1')) - ((INTEGER'2') * (abs(c))) (10:6)`,
182-
`date_format_5 := date_format(CAST(CAST(period_hour_local_date AS date) AS timestamp), VARCHAR'%Y-%m-%d') (8:12)`,
182+
`date_format_5 := date_format(CAST(CAST(period_hour_local_date AS date) AS timestamp), VARCHAR'%Y-%m-%d') (8:12)
183+
`,
183184
},
184185
[]plan_node.Assignment{
185186
{ // case 0

0 commit comments

Comments
 (0)