You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ppl-spark-integration/src/test/scala/org/opensearch/flint/spark/ppl/PPLLogicalPlanAggregationQueriesTranslatorTestSuite.scala
+5-30
Original file line number
Diff line number
Diff line change
@@ -1106,38 +1106,13 @@ class PPLLogicalPlanAggregationQueriesTranslatorTestSuite
Copy file name to clipboardExpand all lines: ppl-spark-integration/src/test/scala/org/opensearch/flint/spark/ppl/PPLLogicalPlanBasicQueriesTranslatorTestSuite.scala
+11-26
Original file line number
Diff line number
Diff line change
@@ -395,39 +395,24 @@ class PPLLogicalPlanBasicQueriesTranslatorTestSuite
395
395
}
396
396
397
397
test("Search multiple tables - with backticks table alias") {
Copy file name to clipboardExpand all lines: ppl-spark-integration/src/test/scala/org/opensearch/flint/spark/ppl/PPLLogicalPlanJoinTranslatorTestSuite.scala
+34-43
Original file line number
Diff line number
Diff line change
@@ -847,71 +847,62 @@ class PPLLogicalPlanJoinTranslatorTestSuite
847
847
}
848
848
849
849
test("test multiple joins with table and subquery backticks alias") {
Copy file name to clipboardExpand all lines: ppl-spark-integration/src/test/scala/org/opensearch/flint/spark/ppl/PPLLogicalPlanRenameTranslatorTestSuite.scala
+5-11
Original file line number
Diff line number
Diff line change
@@ -126,20 +126,14 @@ class PPLLogicalPlanRenameTranslatorTestSuite
126
126
}
127
127
128
128
test("test rename with backticks alias") {
129
-
valcontext=newCatalystPlanContext
129
+
valexpectedPlan=
130
+
planTransformer.visit(
131
+
plan(pplParser, "source=t | rename a as r_a, b as r_b | fields c"),
132
+
newCatalystPlanContext)
130
133
vallogPlan=
131
134
planTransformer.visit(
132
135
plan(pplParser, "source=t | rename `a` as `r_a`, `b` as `r_b` | fields `c`"),
Copy file name to clipboardExpand all lines: ppl-spark-integration/src/test/scala/org/opensearch/flint/spark/ppl/PPLLogicalPlanTrendlineCommandTranslatorTestSuite.scala
+6-17
Original file line number
Diff line number
Diff line change
@@ -94,25 +94,14 @@ class PPLLogicalPlanTrendlineCommandTranslatorTestSuite
94
94
}
95
95
96
96
test("test trendline with sort and backticks alias") {
97
-
valcontext=newCatalystPlanContext
97
+
valexpectedPlan=
98
+
planTransformer.visit(
99
+
plan(pplParser, "source=relation | trendline sort - age sma(3, age) as age_sma"),
100
+
newCatalystPlanContext)
98
101
vallogPlan=
99
102
planTransformer.visit(
100
-
plan(pplParser, "source=relation | trendline sort - age sma(3, age) as `age_sma`"),
101
-
context)
102
-
103
-
valtable=UnresolvedRelation(Seq("relation"))
104
-
valageField=UnresolvedAttribute("age")
105
-
valsort=Sort(Seq(SortOrder(ageField, Descending)), global =true, table)
0 commit comments