Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy to from files, urls and what not #30

Open
piccolbo opened this issue Aug 15, 2015 · 2 comments
Open

copy to from files, urls and what not #30

piccolbo opened this issue Aug 15, 2015 · 2 comments

Comments

@piccolbo
Copy link
Collaborator

using https://spark.apache.org/docs/latest/sql-programming-guide.html#loading-data-programmatically
or LOAD INPATH, see db insert into

@piccolbo
Copy link
Collaborator Author

CREATE TEMPORARY TABLE impressions
USING org.apache.spark.sql.jdbc
OPTIONS (
url "jdbc:postgresql:dbserver",
dbtable "impressions"
)

Oops this doesn't work in hivql, it's load inpath or bust

@piccolbo
Copy link
Collaborator Author

After some research dplyr doesn't have a feature to load data in a db that is not in memory. Propose
the following interface:

  • extension of copy_to
  • when argument is a character vector, it is construed as a collection of URL
  • problem is inferring schema. One possibility is read a few rows with read table, use copy to to create table, then overwrite.

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

No branches or pull requests

1 participant