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

Update csvs_convert. #736

Merged
merged 2 commits into from
Jan 21, 2023
Merged

Update csvs_convert. #736

merged 2 commits into from
Jan 21, 2023

Conversation

kindly
Copy link
Contributor

@kindly kindly commented Jan 21, 2023

The main change is adding --dump option so that you can produce a dump file that will work with psql for postgres and sqlite3 for sqlite.
This uses the native import functions '\copyfor postgres (which allows remote copy) and.import` for sqlite, which is the fastest way to insert into sqlite.
This dumpfile is also useful to just
inspect what the command will produce if you run it directly against a database. This is to addresses partially
#687 as it is the representation that most replicates what the command will do.

Other change includes making sure strings that start with 0 (but are not 0) are treated as strings not numbers which should resolve #688

Also better parquet date detection has been added resolving #697

The main change is adding --dump option so that you can produce a
dump file that will work with `psql` for postgres and `sqlite3` for
sqlite.
This uses the native import functions '\copy` for postgres
(which allows remote copy) and `.import` for sqlite, which is the
fastest way to insert into sqlite.
This dumpfile is also useful to just
inspect what the command will produce if you run it directly against a
database. This is to addresses partially
dathere#687 as it is the representation
that most replicates what the command will do.

Other changed include making sure strings that start with 0 (but are not
0) are treated as strings not numbers which should resolve
dathere#688
@jqnatividad
Copy link
Collaborator

Thanks @kindly!

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.

to and stat comment: field inferencing not coherent
2 participants