We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Clickhouse.connection.create_table("events") do |t| t.fixed_string :id, 16 t.array :array_data, 'String' t.date :date t.engine "MergeTree(date, (date), 8192)" end
Clickhouse.connection.insert_rows("events", :names => %w(id array_data date)) do |rows| rows << ["d91d1c90", ["1", "2"], "2016-10-17"] end
Clickhouse::QueryError: Code: 26, e.displayText() = DB::Exception: Cannot parse quoted string: expected opening quote: Row 1: Column 0, name: id, type: FixedString(16), parsed text: "d91d1c90" Column 1, name: array_data, type: Array(String), parsed text: <EMPTY>ERROR
It happens because CSV generate array with double quotes, and Clickhouse cant understand this format
\"[\"1\", \"2\"]\"
Worked example with single quotes:
Clickhouse.connection.execute("INSERT INTO events FORMAT CSV \"d91d1c90\",\"['1','2']\",\"2016-10-17\"")
The text was updated successfully, but these errors were encountered:
Any updates on this issue?
Sorry, something went wrong.
No branches or pull requests
It happens because CSV generate array with double quotes, and Clickhouse cant understand this format
Worked example with single quotes:
The text was updated successfully, but these errors were encountered: