Skip to content

Conversation

@baishuo
Copy link
Contributor

@baishuo baishuo commented Jun 8, 2015

when i test the following code:
hiveContext.sql("""use testdb""")
val df = (1 to 3).map(i => (i, s"val_$i", i * 2)).toDF("a", "b", "c")
df.write
.format("parquet")
.mode(SaveMode.Overwrite)
.saveAsTable("ttt3")
hiveContext.sql("show TABLES in default")

found that the table ttt3 will be created under the database "default"

@SparkQA
Copy link

SparkQA commented Jun 8, 2015

Test build #34409 has finished for PR 6695 at commit 3d19ad9.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@baishuo baishuo changed the title [SPARK-8516][SQL]create table to specific database by 'use dbname' [SPARK-8156][SQL]create table to specific database by 'use dbname' Jun 8, 2015
@SparkQA
Copy link

SparkQA commented Jun 8, 2015

Test build #34420 has finished for PR 6695 at commit b742e69.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jun 8, 2015

Test build #34442 has finished for PR 6695 at commit 4df48c7.

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

@SparkQA
Copy link

SparkQA commented Jun 8, 2015

Test build #34444 has finished for PR 6695 at commit cb9f027.

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

@baishuo
Copy link
Contributor Author

baishuo commented Jun 9, 2015

hi @yhuai would you please help me review this pr when you have time? i think maybe it was the base of #6494 . thanks:)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the TODO.

@SparkQA
Copy link

SparkQA commented Jun 13, 2015

Test build #34821 has finished for PR 6695 at commit 9e155f9.

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

@baishuo
Copy link
Contributor Author

baishuo commented Jun 16, 2015

hi @marmbrus ,thanks for review this PR. Had modified it according your comment. Would you please help to check whether it can be merged :)

@asfgit asfgit closed this in 0b8c8fd Jun 17, 2015
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
when i test the following code:
hiveContext.sql("""use testdb""")
val df = (1 to 3).map(i => (i, s"val_$i", i * 2)).toDF("a", "b", "c")
df.write
.format("parquet")
.mode(SaveMode.Overwrite)
.saveAsTable("ttt3")
hiveContext.sql("show TABLES in default")

found that the table ttt3 will be created under the database "default"

Author: baishuo <[email protected]>

Closes apache#6695 from baishuo/SPARK-8516-use-database and squashes the following commits:

9e155f9 [baishuo] remove no use comment
cb9f027 [baishuo] modify testcase
00a7a2d [baishuo] modify testcase
4df48c7 [baishuo] modify testcase
b742e69 [baishuo] modify testcase
3d19ad9 [baishuo] create table to specific database
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.

3 participants