You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
product.product_id,
sum(product_part.num)
FROM product
INNER JOIN product_part ON product.product_id = product_part.product_id
GROUP BY product.product_id
ORDER BY product.product_code ASC
Received exception:
Code: 215. DB::Exception: Column `product_code` is not under aggregate function and not in GROUP BY. Have columns: ['sum(num)','product_id']: While processing product_code ASC. (NOT_AN_AGGREGATE)
SELECT
CAST('{"foo": {"bar": [100, 200, 300]}, "aaa": "e" }', 'JSON') AS a,
CAST('{"foo": "result"}', 'JSON') AS b,
a = b
┌─a───────────────────────────────────┬─b────────────────┬─equals(a, b)─┐
│ {"aaa":"e","foo.bar":[100,200,300]} │ {"foo":"result"} │ 1 │
└─────────────────────────────────────┴──────────────────┴──────────────┘
Property Graph Queries (SQL/PGQ) (Not Supported)
CREATE PROPERTY GRAPH financial_transactions
VERTEX TABLES (person, company, account)
EDGE TABLES (ownerof, transaction);
SELECT owner_name,
SUM(amount) AS total_transacted
FROM financial_transactions GRAPH_TABLE (
MATCH (p:person WHERE p.name = 'Alice')
-[:ownerof]-> (:account)
-[t:transaction]- (:account)
<-[:ownerof]- (owner:person|company)
COLUMNS (owner.name AS owner_name, t_amount AS amount)
) AS ft
GROUP BY owner_name;
Not supported
Should be easy to implement / fix:
Multi-character TRIM functions (T056) (Partial)
Non-decimal integer literals (T661) (Partial)
Underscores in numeric literals (T662) (Partial)
The text was updated successfully, but these errors were encountered:
Based on http://peter.eisentraut.org/blog/2023/04/04/sql-2023-is-finished-here-is-whats-new review (kudos for him)
ClickHouse 23.3
UNIQUE null treatment (F292) (Not supported)
Unique constants does not exist in ClickHouse
ORDER BY in grouped table (F868) (Not supported)
GREATEST and LEAST (T054) (Supported)
String padding functions (T055) (Supported)
Multi-character TRIM functions (T056) (Partial)
Supported, but with old and "heavy" syntax
Need alias for ltrim function with 2 arguments
Optional string types maximum length (T081) (Supported)
Enhanced cycle mark values (T133) (Not supported)
Recursive CTE's are not supported
ANY_VALUE (T626) (Supported)
(any function exist in ClickHouse)
#52147
#52140
Non-decimal integer literals (T661) (Partial)
Working:
Non-working:
Underscores in numeric literals (T662) (Partial)
Working:
Non working:
JSON
JSON data type (T801) (Supported)
But it's experimental
Enhanced JSON data type (T802) (Partial)
Allow to add constrain on only uniq keys
JSON('...text...' WITH UNIQUE KEYS).
(BTW, it's default behavior for ClickHouse)
String-based JSON (T803) (Not supported)
Need an alias data type
Hex integer literals in SQL/JSON path language (T840) (Not supported)
???
SQL/JSON simplified accessor (T860–T864) (Partial)
Supported only for real columns from table, and not from CAST's
SQL/JSON item methods (T865–T878) (Not supported)
JSON comparison (T879–T882) (Not supported)
Property Graph Queries (SQL/PGQ) (Not Supported)
Not supported
Should be easy to implement / fix:
The text was updated successfully, but these errors were encountered: