Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/18580#discussion_r126323442
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/ColumnExpressionSuite.scala ---
@@ -530,6 +530,20 @@ class ColumnExpressionSuite extends QueryTest with
SharedSQLContext {
)
}
+ test("input_file_name, input_file_block_start, input_file_block_length -
more than one sources") {
+ withTable("tab1", "tab2") {
+ val data = sparkContext.parallelize(0 to 10).toDF("id")
+ data.write.saveAsTable("tab1")
+ data.write.saveAsTable("tab2")
+ Seq("input_file_name", "input_file_block_start",
"input_file_block_length").foreach { func =>
+ val e = intercept[AnalysisException] {
+ sql(s"SELECT *, $func() FROM tab1 JOIN tab2 ON tab1.id =
tab2.id")
+ }.getMessage
+ assert(e.contains(s"'$func' does not support more than one
sources"))
--- End diff --
ditto.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]