Skip to content

Commit 42aa0be

Browse files
committed
Fix for HiveCatalog
1 parent 9d7edd8 commit 42aa0be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Databases/DataLake/HiveCatalog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void HiveCatalog::getTableMetadata(
109109
bool HiveCatalog::tryGetTableMetadata(
110110
const std::string & namespace_name,
111111
const std::string & table_name,
112-
DB::ContextPtr /* context_ */,
112+
DB::ContextPtr context_,
113113
TableMetadata & result) const
114114
{
115115
Apache::Hadoop::Hive::Table table;
@@ -138,7 +138,7 @@ bool HiveCatalog::tryGetTableMetadata(
138138
auto columns = table.sd.cols;
139139
for (const auto & column : columns)
140140
{
141-
schema.push_back({column.name, getType(column.type, true, getContext())});
141+
schema.push_back({column.name, getType(column.type, true, context_)});
142142
}
143143
result.setSchema(schema);
144144
}

0 commit comments

Comments
 (0)