Member since
10-21-2016
6
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
4620 | 10-26-2016 09:08 AM |
03-21-2017
04:39 AM
Could you try to increase the Hiverserver2 heap size?
... View more
11-21-2016
11:54 AM
Works for me print(s"Spark ${spark.version}")
val df = spark.createDataFrame(Seq(( 2, 9), ( 1, 5),( 1, 1),( 1, 2),( 2, 8)))
.toDF("y", "x")
df.createOrReplaceTempView("test")
spark.sql("select CASE WHEN y = 2 THEN 'A' ELSE 'B' END AS flag, x from test").show Returns Spark 2.0.0
df: org.apache.spark.sql.DataFrame = [y: int, x: int]
+----+---+
|flag| x|
+----+---+
| A| 9|
| B| 5|
| B| 1|
| B| 2|
| A| 8|
+----+---+
... View more
10-26-2016
09:08 AM
HI Deepesh, We have found the solution by using below link https://community.hortonworks.com/questions/40445/querying-a-partition-table.html Thanks
... View more