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

Parse CSV file error while import data from a CSV file. #376

Open
lizhou1111 opened this issue Dec 4, 2023 · 0 comments
Open

Parse CSV file error while import data from a CSV file. #376

lizhou1111 opened this issue Dec 4, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lizhou1111
Copy link
Contributor

Parse CSV file error while import data from a CSV file.But the Clickhouse can parse successfully.

drop stream if exists test_csv;
create stream if not exists test_csv(
	   ip_range_start ipv4, 
            ip_range_end ipv4, 
            country_code nullable(string), 
            state1 nullable(string), 
            state2 nullable(string), 
            city nullable(string), 
            postcode nullable(string), 
            latitude float64, 
            longitude float64)

The CSV file :

1.0.0.0,1.0.0.255,AU,Queensland,,South Brisbane,,-27.4767,153.017,
1.0.76.0,1.0.79.255,JP,Hiroshima,,'Hiroshima,,34.4002,132.475,

./proton-client -q "insert into test_csv format CSV" < ./dbip-city-ipv4.csv

Code: 27. DB::ParsingException: Cannot parse input: expected ',' at end of stream.: Buffer has gone, cannot extract information about what has been parsed.: While executing ParallelParsingBlockInputFormat: data for INSERT was parsed from stdin: (in query: insert into test_csv format CSV): (in file/uri (fd = 0)): (at row 2)
. (CANNOT_PARSE_INPUT_ASSERTION_FAILED)

'Hiroshima is the key to triggering the problem

@lizhou1111 lizhou1111 added the bug Something isn't working label Dec 4, 2023
@lizhou1111 lizhou1111 self-assigned this Dec 4, 2023
@Jasmine-ge Jasmine-ge assigned Jasmine-ge and unassigned lizhou1111 Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants