Skip to content

Commit

Permalink
Merge pull request #15 from bigo-sg/bigo-22.5.1.2079-liang
Browse files Browse the repository at this point in the history
fix bugs
  • Loading branch information
lgbo-ustc authored Jul 1, 2022
2 parents 75fdb8f + fa6a6c7 commit 7d9186c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/Storages/Hive/StorageHiveCluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ ASTPtr StorageHiveCluster::rewriteQuery(const ASTPtr & query)
struct_buf << name_and_type.name << " " << name_and_type.type->getName();
i++;
}
auto hash_table_structure = std::make_shared<ASTLiteral>(struct_buf.str());
table_func->arguments->children.push_back(hash_table_structure);
auto table_structure = std::make_shared<ASTLiteral>(struct_buf.str());
table_func->arguments->children.push_back(table_structure);

auto partition_key = std::make_shared<ASTLiteral>(queryToString(partition_by_ast));
table_func->arguments->children.push_back(partition_key);
Expand Down Expand Up @@ -291,7 +291,8 @@ void registerStorageHiveCluster(StorageFactory & factory_)
args.comment,
partition_by->ptr(),
std::move(hive_settings),
args.getContext());
args.getContext(),
true);
},
StorageFactory::StorageFeatures{
.supports_settings = true,
Expand Down
2 changes: 1 addition & 1 deletion src/Storages/Hive/StorageHiveCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class StorageHiveCluster : public IStorage, WithContext

Poco::Logger * logger = &Poco::Logger::get("StorageHiveCluster");

ASTPtr rewriteQuery(const ASTPtr & original_query);
ASTPtr rewriteQuery(const ASTPtr & query);
};
}

Expand Down

0 comments on commit 7d9186c

Please sign in to comment.