Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

package org.apache.spark.sql.catalyst.parser

import scala.annotation.nowarn

import org.apache.spark.SparkThrowable
import org.apache.spark.sql.catalyst.{FunctionIdentifier, TableIdentifier}
import org.apache.spark.sql.catalyst.analysis.{AnalysisTest, NamedParameter, PosParameter, RelationTimeTravel, UnresolvedAlias, UnresolvedAttribute, UnresolvedFunction, UnresolvedGenerator, UnresolvedInlineTable, UnresolvedRelation, UnresolvedStar, UnresolvedSubqueryColumnAliases, UnresolvedTableValuedFunction, UnresolvedTVFAliases}
Expand Down Expand Up @@ -1678,7 +1680,8 @@ class PlanParserSuite extends AnalysisTest {
List.empty, List.empty, None, None, false)))

// verify with ROW FORMAT DELIMETED
assertEqual(
@nowarn("cat=deprecation")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine-grained suppressing this case with @nowarn if fine to me

val sqlWithRowFormatDelimiters: String =
"""
|SELECT TRANSFORM(a, b, c)
| ROW FORMAT DELIMITED
Expand All @@ -1695,7 +1698,9 @@ class PlanParserSuite extends AnalysisTest {
| LINES TERMINATED BY '\n'
| NULL DEFINED AS 'NULL'
|FROM testData
""".stripMargin,
""".stripMargin
assertEqual(
sqlWithRowFormatDelimiters,
ScriptTransformation(
"cat",
Seq(AttributeReference("a", StringType)(),
Expand Down