HyukjinKwon commented on a change in pull request #24657: [MINOR][DOCS] Fix
Spark hive example.
URL: https://github.com/apache/spark/pull/24657#discussion_r285916717
##########
File path:
examples/src/main/scala/org/apache/spark/examples/sql/hive/SparkHiveExample.scala
##########
@@ -122,7 +122,7 @@ object SparkHiveExample {
val dataDir = "/tmp/parquet_data"
spark.range(10).write.parquet(dataDir)
// Create a Hive external Parquet table
- sql(s"CREATE EXTERNAL TABLE hive_ints(key int) STORED AS PARQUET LOCATION
'$dataDir'")
+ sql(s"CREATE EXTERNAL TABLE hive_ints(id bigint) STORED AS PARQUET
LOCATION '$dataDir'")
// The Hive external table should already have data
sql("SELECT * FROM hive_ints").show()
// +---+
Review comment:
can we fix this results comments too
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]