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
Does this gem support defining default value as what is descried in clickhouse documentation metioned bellow?
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] [db.]name [ON CLUSTER cluster] ( name1 [type1] [DEFAULT|MATERIALIZED|ALIAS expr1], name2 [type2] [DEFAULT|MATERIALIZED|ALIAS expr2], ... ) ENGINE = engine
I saw Clickhouse::Connection::Query::Table#to_sql and think it is not supported.
The text was updated successfully, but these errors were encountered:
I've just made an alternative, very similar to this one:
ClickHouse.connection.create_table('visits', engine: 'MergeTree(date, (year, date), 8192)') do |t| t.UInt16 :year t.Date :date t.UInt16 :id, 16, default: 0, ttl: 'date + INTERVAL 1 DAY' end
Sorry, something went wrong.
No branches or pull requests
Does this gem support defining default value as what is descried in clickhouse documentation metioned bellow?
I saw Clickhouse::Connection::Query::Table#to_sql and think it is not supported.
The text was updated successfully, but these errors were encountered: