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

load part of the column from csv file to a table #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Mad-Apes
Copy link

Hello,
This version allow users load part of the column from csv file to a postgres table.
I add two parameter. One is CSV_FIELDS means columns in a csv file. The other parameter is FINAL_FIELDS, this means colomns in a postgres table.
for example:
CSV_FIELDS=table_name,params_name,description,params_value,default_value,range_operator

FINAL_FIELDS=table_name,params_name,PP,MM

If the column in FINAL_FIELDS does not in CSV_FIELDS, then load this column to table. for example, PP does not in CSV_FIELDS, then PP will load to table.

I provide a file bulkload_cfg_report.ctl. You can look over it.

@MoonInsung MoonInsung self-requested a review April 21, 2020 05:49
@MoonInsung
Copy link
Contributor

Dear Mad-Apes.
Thank you for sent PR.
I was not able to check PR properly due to other work.
I'll check the PR contents sent from the coming May.
I apologize for the inconvenience and slow checked.

Best regards.

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