Last active
February 24, 2021 13:48
-
-
Save colinbendell/e1895017bf656e25d66bf3fdac18f039 to your computer and use it in GitHub Desktop.
simple query in R backing against snowflake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dbplyr) | |
library(dplyr.snowflakedb) | |
options(dplyr.jdbc.classpath = "~/Downloads/snowflake-jdbc-3.5.3.jar") | |
# Update with credentials | |
snowflake_db <- src_snowflakedb(user = ""password = "", account = "ab123456", region = "us-east-1", opts = list(warehouse = "import", db = "cloudinary", schema = "public")) | |
benchmarks <- tbl(snowflake_db, in_schema("cto","lossy_benchmark_fast_v1_1")) | |
benchmarks %>% | |
rename_all(tolower) %>% | |
group_by(format) %>% | |
summarize(n = n()) %>% | |
kable() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment