From c3a5b57d8550064f29d970ee7db85d6760c0abae Mon Sep 17 00:00:00 2001 From: Gagan Goel Date: Fri, 4 Oct 2019 17:46:58 -0400 Subject: [PATCH] Use signed integer comparison for TIME data type in the ORDER BY clause. --- utils/windowfunction/idborderby.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/windowfunction/idborderby.cpp b/utils/windowfunction/idborderby.cpp index 8e5a63e1f..302241047 100644 --- a/utils/windowfunction/idborderby.cpp +++ b/utils/windowfunction/idborderby.cpp @@ -268,6 +268,7 @@ void CompareRule::compileRules(const std::vector& spec, const rowgr case CalpontSystemCatalog::BIGINT: case CalpontSystemCatalog::DECIMAL: case CalpontSystemCatalog::UDECIMAL: + case CalpontSystemCatalog::TIME: { Compare* c = new IntCompare(*i); fCompares.push_back(c); @@ -319,7 +320,6 @@ void CompareRule::compileRules(const std::vector& spec, const rowgr case CalpontSystemCatalog::DATE: case CalpontSystemCatalog::DATETIME: case CalpontSystemCatalog::TIMESTAMP: - case CalpontSystemCatalog::TIME: { Compare* c = new UintCompare(*i); fCompares.push_back(c);