Evgeny Stanilovsky created IGNITE-18393:
-------------------------------------------
Summary: Sql. Broken aggregations accumulators for (var)binary
types.
Key: IGNITE-18393
URL: https://issues.apache.org/jira/browse/IGNITE-18393
Project: Ignite
Issue Type: Bug
Components: sql
Reporter: Evgeny Stanilovsky
No accumulators implemented for aggregators with (var)binary types
{noformat}
CREATE TABLE blobs (b varbinary, g INTEGER);
INSERT INTO blobs VALUES (x'FFFEFB', 1);
SELECT MIN(b) FROM blobs;
{noformat}
{noformat}
Caused by: org.apache.ignite.sql.SqlException: IGN-SQL-26
TraceId:06941fc6-3098-4fd3-a9f2-07f9a66fb317 Line 2, Column 125: Cannot cast
"long" to "org.apache.calcite.avatica.util.ByteString"
at
org.apache.ignite.internal.sql.engine.util.Commons.compile(Commons.java:515)
at
org.apache.ignite.internal.sql.engine.exec.exp.agg.AccumulatorsFactory.compileCast(AccumulatorsFactory.java:128)
at
org.apache.ignite.internal.sql.engine.exec.exp.agg.AccumulatorsFactory.cast0(AccumulatorsFactory.java:100){noformat}
check:
org.apache.ignite.internal.sql.engine.exec.exp.agg.Accumulators
--
This message was sent by Atlassian Jira
(v8.20.10#820010)