Skip to content

Conversation

@CNRui
Copy link
Contributor

@CNRui CNRui commented Dec 22, 2017

What changes were proposed in this pull request?

Create table using the right DataFrame. peopleDF->usersDF

peopleDF:
+----+-------+
| age| name|
+----+-------+
usersDF:
+------+--------------+----------------+
| name|favorite_color|favorite_numbers|
+------+--------------+----------------+

How was this patch tested?

Manually tested.

Create table using the right DataFrame. peopleDF->usersDF
@gatorsmile
Copy link
Member

gatorsmile commented Dec 22, 2017

Can you attached the screenshot of the generated doc after applying this PR?

@CNRui
Copy link
Contributor Author

CNRui commented Dec 22, 2017

peopleDF.show()
+----+-------+
| age| name|
+----+-------+
|null|Michael|
| 30| Andy|
| 19| Justin|
+----+-------+

peopleDF
.write
.partitionBy("favorite_color")
.bucketBy(42, "name")
.saveAsTable("people_partitioned_bucketed")

Exception in thread "main" java.lang.RuntimeException: Partition column favorite_color not found in schema StructType(StructField(age,LongType,true), StructField(name,StringType,true))

@SparkQA
Copy link

SparkQA commented Dec 22, 2017

Test build #4022 has finished for PR 20052 at commit 770d614.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Dec 23, 2017

Merged to master/2.2

asfgit pushed a commit that referenced this pull request Dec 23, 2017
## What changes were proposed in this pull request?

Create table using the right DataFrame. peopleDF->usersDF

peopleDF:
+----+-------+
| age|   name|
+----+-------+
usersDF:
+------+--------------+----------------+
|  name|favorite_color|favorite_numbers|
+------+--------------+----------------+

## How was this patch tested?

Manually tested.

Author: CNRui <[email protected]>

Closes #20052 from CNRui/patch-2.

(cherry picked from commit ea2642e)
Signed-off-by: Sean Owen <[email protected]>
@asfgit asfgit closed this in ea2642e Dec 23, 2017
MatthewRBruce pushed a commit to Shopify/spark that referenced this pull request Jul 31, 2018
## What changes were proposed in this pull request?

Create table using the right DataFrame. peopleDF->usersDF

peopleDF:
+----+-------+
| age|   name|
+----+-------+
usersDF:
+------+--------------+----------------+
|  name|favorite_color|favorite_numbers|
+------+--------------+----------------+

## How was this patch tested?

Manually tested.

Author: CNRui <[email protected]>

Closes apache#20052 from CNRui/patch-2.

(cherry picked from commit ea2642e)
Signed-off-by: Sean Owen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants