You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/21 08:49:33 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #24657: [MINOR][DOCS] Fix Spark hive example.

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org