Github user watermen commented on the pull request:
https://github.com/apache/spark/pull/4427#issuecomment-73499768
@marmbrus I think hiveResults can be finded in two ways: 1. in dir
```sql/hive/src/test/resources/golden``` 2. driver.run(sql)
```
val hiveResults: Seq[Seq[String]] =
if (hiveCachedResults.size == queryList.size) {
logInfo(s"Using answer cache for test: $testCaseName")
hiveCachedResults
} else {
val hiveQueries = queryList.map(new TestHive.HiveQLQueryExecution(_))
```
when ```sql/hive/src/test/resources/golden``` is empty, it will execute MR
Task to generate, but it always throw error
```
- create table as with db name use backticks *** FAILED ***
Failed to generate golden answer for query:
Error: FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.mr.MapRedTask
org.apache.spark.sql.execution.QueryExecutionException: FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
```
Can you tell me the reason? Many thanks.
---
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]