You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by dl...@apache.org on 2018/10/13 02:09:37 UTC
asterixdb git commit: [ASTERIXDB-2461][FUN] Fix LocalAvgTypeComputer
Repository: asterixdb
Updated Branches:
refs/heads/master ab4bed0ce -> adfb63361
[ASTERIXDB-2461][FUN] Fix LocalAvgTypeComputer
- user model changes: yes
- storage format changes: no
- interface changes: no
Details:
1. Changed the type of count from INT32 to INT64 because AVG uses a long
to store count
commit 7cfdaf0b8fb452ead4183a8f24a5b5dd21354fa0
Author: James Fang <jf...@ucr.edu>
Change-Id: Ic693d027190b43fa3deaaf83ebf73f62c77d5a76
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2996
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>
Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/adfb6336
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/adfb6336
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/adfb6336
Branch: refs/heads/master
Commit: adfb63361a1808aadb1782aee03acc4d9af8eb0c
Parents: ab4bed0
Author: James Fang <jf...@ucr.edu>
Authored: Fri Oct 12 15:34:29 2018 -0700
Committer: Dmitry Lychagin <dm...@couchbase.com>
Committed: Fri Oct 12 19:09:14 2018 -0700
----------------------------------------------------------------------
.../apache/asterix/om/typecomputer/impl/LocalAvgTypeComputer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/adfb6336/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/LocalAvgTypeComputer.java
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/LocalAvgTypeComputer.java b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/LocalAvgTypeComputer.java
index a5858d7..f9ffa86 100644
--- a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/LocalAvgTypeComputer.java
+++ b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/LocalAvgTypeComputer.java
@@ -38,7 +38,7 @@ public class LocalAvgTypeComputer implements IResultTypeComputer {
IMetadataProvider<?, ?> metadataProvider) throws AlgebricksException {
return new ARecordType(null,
new String[] { "sum", "count" }, new IAType[] {
- AUnionType.createNullableType(BuiltinType.ADOUBLE, "OptionalDouble"), BuiltinType.AINT32 },
+ AUnionType.createNullableType(BuiltinType.ADOUBLE, "OptionalDouble"), BuiltinType.AINT64 },
false);
}
}