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

Import csv files #1662

Open
syysummer opened this issue May 6, 2024 · 5 comments
Open

Import csv files #1662

syysummer opened this issue May 6, 2024 · 5 comments
Assignees

Comments

@syysummer
Copy link

ByConity 0.4.0 imports csv files through DBeaver tool, prompting that script parameters cannot be set
Can't set parameter at index 1 due to no JDBC style '?' placeholder found in the query
image
image

@nudles
Copy link
Collaborator

nudles commented May 14, 2024

@syysummer can you share the table create sql and a sample of the csv file?

@syysummer
Copy link
Author

syysummer commented May 16, 2024

@nudles
We exported the sql file and then imported the existing data into ByConity through a python script.
In version 0.3.2, we have tested that it is normal to import csv files in DBeaver. After the upgrade, we can no longer import csv files.

@nudles
Copy link
Collaborator

nudles commented May 17, 2024

@syysummer
can you try to change these two settings to 1 for your byconity servers (via the configuration files)?

M(Bool, mysql_map_string_to_text_in_show_columns, false, "If enabled, String type will be mapped to TEXT in SHOW [FULL] COLUMNS, BLOB otherwise.", 0) \

@syysummer
Copy link
Author

syysummer commented May 20, 2024

@nudles Hello,I have modified the configuration and still cannot import the csv file.
image
image

@nudles
Copy link
Collaborator

nudles commented May 23, 2024

@syysummer you need to change the settings before launching byconity by updating the configuration file.
e.g., if you login as the 'default' user, then add the setting to
https://github.com/ByConity/ByConity/blob/master/docker/docker-compose/byconity-simple-cluster/users.yml#L7

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

No branches or pull requests

2 participants