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
cqlsh> create keyspace if not exists k;
cqlsh> use k;
cqlsh:k> create table t (k int primary key, n decimal);
cqlsh:k> insert into t (k, n) values (1, 1);
cqlsh:k> insert into t (k, n) values (2, 2);
cqlsh:k> select * from t;
k | n
---+---
1 | 1
2 | 2
(2 rows)
cqlsh:k> select sum(n) from t;
InvalidRequest: Error from server: code=2200 [Invalid query] message="SQL error (yb/yql/cql/ql/ptree/process_context.cc:51): Invalid Function Call. Failed calling 'sum(decimal)'. Not implemented (yb/util/bfql/bfql.cc:228): Builtin function 'sum' is not yet implemented
select sum(n) from t;
^^^
(error -214)"
Summary:
This diff implements support for sum for varint and decimal columns.
Tests TestDecimalDataType.java and TestVarIntDataType.java have been
enhanced to test for sum of the given types.
Test Plan: TestDecimalDataType.java and TestVarIntDataType.java
Reviewers: mihnea, robert, neil, hector
Reviewed By: hector
Subscribers: kannan, yql
Differential Revision: https://phabricator.dev.yugabyte.com/D5065
… protocol
A query executed with the extended query protocol may entirely ignore
hints defined in it, as the only moment where a hint is reset is when a
query is restarted. This commit introduces a hook for ExecutorEnd(),
which is a code path taken at the end of each individual execution
happening through a Portal when using the extended query protocol.
After this patch, it should be possible to make the reset of
current_hint_retrieved less optimistic, but the current logic does not
hurt as well as the end of executor would match with the next query to
come in for most users.
Per report and patch yugabyte#12741 in yugabyte-db, also reported as yugabyte#145 in
pg_hint_plan.
Reported-by: Furutani-san (kfuru)
Author: tanujnay112
Backpatch-through: 11
Test case:
Reported by @robertpang
The text was updated successfully, but these errors were encountered: