Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/9382#issuecomment-152691542
@yhuai, here's the source code of the failing test:
```scala
test("InputFileName") {
withTempPath { dir =>
val data = sparkContext.parallelize(0 to 10).toDF("id")
data.write.parquet(dir.getCanonicalPath)
val answer =
sqlContext.read.parquet(dir.getCanonicalPath).select(inputFileName())
.head.getString(0)
assert(answer.contains(dir.getCanonicalPath))
checkAnswer(data.select(inputFileName()).limit(1), Row(""))
}
}
```
Is the original assertion supposed to be checking that `inputFileName()`
returns an empty string for data frames that were created by `sc.parallelize()`?
---
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]