-
Notifications
You must be signed in to change notification settings - Fork 7
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 named tuples #197
parse named tuples #197
Conversation
@@ -523,6 +523,7 @@ defmodule Ch.ConnectionTest do | |||
}} = Ch.query(conn, "SELECT * FROM t_uuid ORDER BY y") | |||
end | |||
|
|||
@tag :skip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest ClickHouse now has "new JSON" https://clickhouse.com/docs/en/sql-reference/data-types/newjson, I'll add support for it later.
For now the test for "old JSON" is skipped to prevent CI errors.
lib/ch/types.ex
Outdated
|
||
defp decode_identifier(<<a, rest::bytes>>, len, original, stack, acc) when is_alpha(a) do | ||
defp decode_identifier(<<a, rest::bytes>>, len, original, stack, acc) | ||
when is_alpha(a) or is_numeric(a) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming identifiers are alphanumeric for now. But it seems like ClickHouse allows more than that. These work:
select tuple(1 as a$, 2 as b);
select tuple(1 as a_, 2 as b);
I'll try to find out what is allowed in identifiers and update it later.
Hm, the tests pass locally. My Right, ClickHouse now quotes the identifiers :) This is what we get:
I'm dropping decoding |
fixes #196