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

Make RPresto compatible with new Presto JSON data format and dbplyr 2.5.0 #280

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

jarodmeng
Copy link
Contributor

There have been some changes to Presto and dbplyr which result in RPresto 1.4.6 having errors. This PR combines a few commits to solve those issues and make RPresto compatible again.

This PR should fix #272, #274, and #277.

Copy link

linux-foundation-easycla bot commented Dec 12, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 33.83%. Comparing base (cf31de7) to head (88074d2).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
R/presto.field.R 0.00% 17 Missing ⚠️
R/cte.R 0.00% 3 Missing ⚠️
R/sqlCreateTableAs.R 0.00% 3 Missing ⚠️
R/dbExistsTable.R 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #280      +/-   ##
==========================================
- Coverage   34.27%   33.83%   -0.44%     
==========================================
  Files          46       46              
  Lines        1777     1800      +23     
==========================================
  Hits          609      609              
- Misses       1168     1191      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jarodmeng jarodmeng merged commit 041e17c into prestodb:master Dec 12, 2024
7 checks passed
Comment on lines +34 to +37
if (inherits(name, "dbplyr_table_path")) { # dbplyr >= 2.5.0
name <- dbplyr::table_path_name(name, con)
} else {
name <- DBI::dbQuoteIdentifier(con, name)

Choose a reason for hiding this comment

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

I think this is still breaking for dbplyr < 2.5.0 and DBI >= 1.2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you be more specific about the breaking? I ran all the unit tests with dbplyr 2.4.0 and DBI 1.2.3 and all tests passed.

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.

copy_to is adding extra " to table name
2 participants