This is an automated email from the ASF dual-hosted git repository.

lwz9103 pushed a commit to branch liquid
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git

commit 22a8f8b39b71913ce0899f0dce37953b35758840
Author: Chang Chen <[email protected]>
AuthorDate: Tue Dec 24 10:53:05 2024 +0800

    [CH] Fix build, see https://github.com/apache/incubator-gluten/pull/8300 
for details
    
    (cherry picked from commit a612eaa674d09313febcef50ecdae36ac2f5b9fa)
---
 .../local-engine/Parser/scalar_function_parser/kylinSplitPart.cpp   | 6 ++++--
 cpp-ch/local-engine/Parser/scalar_function_parser/timestampAdd.cpp  | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/cpp-ch/local-engine/Parser/scalar_function_parser/kylinSplitPart.cpp 
b/cpp-ch/local-engine/Parser/scalar_function_parser/kylinSplitPart.cpp
index a5f16381f1..00edfbbb04 100644
--- a/cpp-ch/local-engine/Parser/scalar_function_parser/kylinSplitPart.cpp
+++ b/cpp-ch/local-engine/Parser/scalar_function_parser/kylinSplitPart.cpp
@@ -15,8 +15,10 @@
 * limitations under the License.
 */
 
-#include <Parser/FunctionParser.h>
 #include <DataTypes/DataTypeNullable.h>
+#include <DataTypes/DataTypeString.h>
+#include <DataTypes/DataTypesNumber.h>
+#include <Parser/FunctionParser.h>
 
 namespace DB
 {
@@ -28,7 +30,7 @@ extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH;
 
 namespace local_engine
 {
-
+using namespace DB;
 class FunctionParserKylinSplitPart : public FunctionParser
 {
 public:
diff --git a/cpp-ch/local-engine/Parser/scalar_function_parser/timestampAdd.cpp 
b/cpp-ch/local-engine/Parser/scalar_function_parser/timestampAdd.cpp
index 6f6e982c29..3758eecaa0 100644
--- a/cpp-ch/local-engine/Parser/scalar_function_parser/timestampAdd.cpp
+++ b/cpp-ch/local-engine/Parser/scalar_function_parser/timestampAdd.cpp
@@ -17,6 +17,7 @@
 
 #include <DataTypes/DataTypeDateTime64.h>
 #include <DataTypes/DataTypeNullable.h>
+#include <DataTypes/DataTypeString.h>
 #include <DataTypes/DataTypesNumber.h>
 #include <Parser/FunctionParser.h>
 #include <Common/DateLUTImpl.h>
@@ -34,6 +35,7 @@ extern const int ILLEGAL_TYPE_OF_ARGUMENT;
 
 namespace local_engine
 {
+using namespace DB;
 static const std::map<std::string, std::string> KE_UNIT_TO_CH_FUNCTION
     = {{"FRAC_SECOND", "addMicroseconds"},
        {"SQL_TSI_FRAC_SECOND", "addMicroseconds"},


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to