Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp-ch/clickhouse.version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CH_ORG=Kyligence
CH_BRANCH=rebase_ch/20250116
CH_COMMIT=a260339b40c
CH_BRANCH=rebase_ch/20250121
CH_COMMIT=e5ecd10bf24
6 changes: 3 additions & 3 deletions cpp-ch/local-engine/Functions/SparkFunctionTrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <bitset>
#include <memory>
#include <string>
#include <Columns/ColumnString.h>
#include <DataTypes/DataTypeString.h>
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionHelpers.h>
#include <Functions/IFunction.h>
#include <IO/WriteHelpers.h>

#include <memory>
#include <string>

using namespace DB;

namespace DB
Expand Down
2 changes: 1 addition & 1 deletion cpp-ch/local-engine/Parser/ExpressionParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ ExpressionParser::NodeRawConstPtr ExpressionParser::parseExpression(ActionsDAG &

PreparedSets prepared_sets;
FutureSet::Hash emptyKey;
auto future_set = prepared_sets.addFromTuple(emptyKey, {elem_block}, context->queryContext()->getSettingsRef());
auto future_set = prepared_sets.addFromTuple(emptyKey, nullptr, {elem_block}, context->queryContext()->getSettingsRef());
auto arg = DB::ColumnSet::create(1, std::move(future_set));
args.emplace_back(&actions_dag.addColumn(DB::ColumnWithTypeAndName(std::move(arg), std::make_shared<DB::DataTypeSet>(), name)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ DB::QueryPlanPtr MergeTreeRelParser::parseReadRel(
context->getSettingsRef()[Setting::max_block_size],
1);

auto * source_step_with_filter = static_cast<SourceStepWithFilter *>(read_step.get());
auto * source_step_with_filter = static_cast<SourceStepWithFilterBase *>(read_step.get());
if (const auto & storage_prewhere_info = query_info->prewhere_info)
{
source_step_with_filter->addFilter(storage_prewhere_info->prewhere_actions.clone(), storage_prewhere_info->prewhere_column_name);
Expand Down
6 changes: 3 additions & 3 deletions cpp-ch/local-engine/tests/gtest_ch_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ TEST(TestFunction, In)
set->insertFromBlock(col1_set_block.getColumnsWithTypeAndName());
set->finishInsert();
PreparedSets::Hash empty;
auto future_set = std::make_shared<FutureSetFromStorage>(empty, std::move(set), std::nullopt);
auto future_set = std::make_shared<FutureSetFromStorage>(empty, nullptr, std::move(set), std::nullopt);
//TODO: WHY? after https://github.com/ClickHouse/ClickHouse/pull/63723 we need pass 4 instead of 1
auto arg = ColumnSet::create(4, future_set);

Expand Down Expand Up @@ -124,7 +124,7 @@ TEST(TestFunction, NotIn1)
set->insertFromBlock(col1_set_block.getColumnsWithTypeAndName());
set->finishInsert();
PreparedSets::Hash empty;
auto future_set = std::make_shared<FutureSetFromStorage>(empty, std::move(set), std::nullopt);
auto future_set = std::make_shared<FutureSetFromStorage>(empty, nullptr, std::move(set), std::nullopt);

//TODO: WHY? after https://github.com/ClickHouse/ClickHouse/pull/63723 we need pass 4 instead of 1
auto arg = ColumnSet::create(4, future_set);
Expand Down Expand Up @@ -168,7 +168,7 @@ TEST(TestFunction, NotIn2)
set->insertFromBlock(col1_set_block.getColumnsWithTypeAndName());
set->finishInsert();
PreparedSets::Hash empty;
auto future_set = std::make_shared<FutureSetFromStorage>(empty, std::move(set), std::nullopt);
auto future_set = std::make_shared<FutureSetFromStorage>(empty, nullptr, std::move(set), std::nullopt);

//TODO: WHY? after https://github.com/ClickHouse/ClickHouse/pull/63723 we need pass 4 instead of 1
auto arg = ColumnSet::create(4, future_set);
Expand Down
4 changes: 0 additions & 4 deletions cpp-ch/local-engine/tests/gtest_local_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <iostream>
#include <gluten_test_util.h>
#include <incbin.h>
#include <Builder/SerializedPlanBuilder.h>
#include <Disks/DiskLocal.h>
#include <Formats/FormatFactory.h>
#include <Interpreters/Context.h>
Expand Down Expand Up @@ -100,9 +99,6 @@ int main(int argc, char ** argv)
[&](const SparkConfigs::ConfigMap & spark_conf_map) { BackendInitializerUtil::initBackend(spark_conf_map); },
true);

auto & factory = FormatFactory::instance();
DB::registerOutputFormatParquet(factory);

SCOPE_EXIT({ BackendFinalizerUtil::finalizeGlobally(); });

::testing::InitGoogleTest(&argc, argv);
Expand Down