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

Adds support for Snowflake databases #625

Merged
merged 6 commits into from
Apr 1, 2021
Merged

Conversation

edgararuiz
Copy link
Collaborator

  • Adds a formal Snowflake "back-end" script
  • Customizes log10() translation
  • Adds simulate function
  • Prevent ANALYZE TABLE to run as part of copy_to() by creating a method with an empty output
  • Adds single test for log10() SQL output

@edgararuiz
Copy link
Collaborator Author

@hadley PTAL

simulate_snowflake <- function() simulate_dbi("Snowflake")

#' @export
sql_table_analyze.Snowflake <- function(con, table, ...) {}
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a comment here explaining why, preferably with a link to snowflake docs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was like trying to prove a negative. Could not find an explicit acknowledgement in the docs that we don't need to run the table analysis. I commented and included the link to all SQL commands, hopefully that helps.

Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

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

Can you please add a bullet to the top of NEWS.md? It should briefly describe the change and end with (@yourname, #issuenumber).

@hadley hadley merged commit c545439 into tidyverse:master Apr 1, 2021
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.

2 participants