You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@quickstep.apache.org by ha...@apache.org on 2016/06/23 20:16:43 UTC
[17/17] incubator-quickstep git commit: QUICKSTEP-6: New fixed
precision number type: Decimal.
QUICKSTEP-6: New fixed precision number type: Decimal.
Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/8570a906
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/8570a906
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/8570a906
Branch: refs/heads/decimal-type
Commit: 8570a90615c887b92a56e3ada76ee850e64a6b80
Parents: d642891
Author: Hakan Memisoglu <ha...@apache.org>
Authored: Tue May 31 13:14:42 2016 -0500
Committer: Hakan Memisoglu <ha...@apache.org>
Committed: Thu Jun 23 15:15:30 2016 -0500
----------------------------------------------------------------------
parser/SqlParser.ypp | 2 +-
parser/preprocessed/SqlParser_gen.cpp | 4600 ++++++++----------
parser/preprocessed/SqlParser_gen.hpp | 322 +-
types/CMakeLists.txt | 27 +
types/DecimalLit.hpp | 293 ++
types/DecimalType.cpp | 120 +
types/DecimalType.hpp | 124 +
types/NumericSuperType.hpp | 2 +-
types/NumericTypeUnifier.hpp | 46 +
types/Type.cpp | 3 +
types/Type.hpp | 3 +
types/Type.proto | 9 +-
types/TypeFactory.cpp | 10 +
types/TypeFactory.hpp | 1 +
types/TypeID.cpp | 1 +
types/TypeID.hpp | 1 +
types/TypedValue.cpp | 16 +
types/TypedValue.hpp | 21 +
types/TypedValue.proto | 7 +-
.../binary_operations/AddBinaryOperation.cpp | 10 +-
.../ArithmeticBinaryOperation.hpp | 19 +
.../ArithmeticBinaryOperators.hpp | 106 +
.../operations/binary_operations/CMakeLists.txt | 2 +
.../binary_operations/DivideBinaryOperation.cpp | 7 +-
.../binary_operations/ModuloBinaryOperation.cpp | 13 +
.../MultiplyBinaryOperation.cpp | 12 +-
.../SubtractBinaryOperation.cpp | 9 +-
.../operations/comparisons/BasicComparison.cpp | 4 +-
.../operations/comparisons/BasicComparison.hpp | 22 +-
types/operations/comparisons/CMakeLists.txt | 1 +
types/operations/comparisons/ComparisonUtil.hpp | 104 +
.../comparisons/LiteralComparators.hpp | 127 +
.../ArithmeticUnaryOperations.cpp | 13 +-
.../operations/unary_operations/CMakeLists.txt | 2 +
.../unary_operations/NumericCastOperation.hpp | 5 +-
types/tests/DecimalType_unittest.cpp | 82 +
36 files changed, 3463 insertions(+), 2683 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/8570a906/parser/SqlParser.ypp
----------------------------------------------------------------------
diff --git a/parser/SqlParser.ypp b/parser/SqlParser.ypp
index 382ea44..11685be 100644
--- a/parser/SqlParser.ypp
+++ b/parser/SqlParser.ypp
@@ -774,7 +774,7 @@ data_type:
$$ = new quickstep::ParseDataType(quickstep::TypeFactory::GetType(quickstep::kDatetime));
}
| TOKEN_DECIMAL {
- $$ = new quickstep::ParseDataType(quickstep::TypeFactory::GetType(quickstep::kDouble));
+ $$ = new quickstep::ParseDataType(quickstep::TypeFactory::GetType(quickstep::kDecimal));
}
| TOKEN_REAL {
$$ = new quickstep::ParseDataType(quickstep::TypeFactory::GetType(quickstep::kDouble));