Skip to content

Swap readr for data.table as creator of TSV - #271

Open
jd4ds wants to merge 7 commits into
r-dbi:mainfrom
jd4ds:local_file_enhancements
Open

jd4ds wants to merge 7 commits into
r-dbi:mainfrom
jd4ds:local_file_enhancements

Conversation

@jd4ds

@jd4ds jd4ds commented Jun 14, 2022 •

Copy link
Copy Markdown

This closes #270.

@krlmlr

krlmlr commented Jun 18, 2022

Copy link
Copy Markdown
Member

Thanks. I tweaked myself to ensure that CI/CD is run.

Should we perhaps consider offering both ways of creating the CSV files, and perhaps make the data.table way opt-in for now?

@krlmlr

krlmlr commented Jun 18, 2022

Copy link
Copy Markdown
Member

Something's not quite right yet with the tests, could you please take a look?

@jd4ds

jd4ds commented Jun 20, 2022

Copy link
Copy Markdown
Author

Ok I'll see if I understand whats going on.

@aviator-app

aviator-app Bot commented Apr 1, 2024

Copy link
Copy Markdown
Contributor

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This pull request is currently open (not queued).

How to merge

To merge this PR, comment /aviator merge or add the mergequeue label.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

Comment thread R/table.R
sql <- paste0(
"LOAD DATA LOCAL INFILE ", dbQuoteString(conn, path), "\n",
"IGNORE\n",
"FIELDS TERMINATED BY ", dbQuoteString(conn, "\t"), "\n",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps:

Suggested change
"FIELDS TERMINATED BY ", dbQuoteString(conn, "\t"), "\n",
"FIELDS TERMINATED BY ", dbQuoteString(conn, "\\t"), "\n",

?

This branch has not been deployed

No deployments
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.

db_append_table should not double escape already escaped quotes

3 participants