Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,10 @@ class LocalHiveConnectorMetadataTest
/*explain=*/false);

auto builder = exec::test::PlanBuilder().values({values});
auto insertHandle = std::make_shared<core::InsertTableHandle>(
velox::exec::test::kHiveConnectorId, handle->veloxHandle());
auto plan = builder.startTableWriter()
.outputDirectoryPath(outputPath)
.targetColumns(table->type())
.insertHandle(insertHandle)
.insertHandle(handle->veloxHandle())
.fileFormat(format)
.endTableWriter()
.planNode();
Expand Down
4 changes: 3 additions & 1 deletion axiom/optimizer/ToVelox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,9 @@ velox::core::PlanNodePtr ToVelox::makeWrite(
VELOX_CHECK(!finishWrite_, "Only single TableWrite per query supported");
auto insertTableHandle =
std::make_shared<const velox::core::InsertTableHandle>(
connectorId, handle->veloxHandle());
connectorId,
handle->veloxHandle(),
/*notNullColumns=*/folly::F14FastSet<std::string>{});
finishWrite_ = {
metadata,
connectorId,
Expand Down
3 changes: 2 additions & 1 deletion axiom/optimizer/tests/TestConnectorQueryTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class TestConnectorQueryTest : public QueryTestBase,
auto handle = std::make_shared<core::InsertTableHandle>(
kTestConnectorId,
std::make_shared<connector::TestInsertTableHandle>(SchemaTableName{
std::string(connector::TestConnector::kDefaultSchema), tableName}));
std::string(connector::TestConnector::kDefaultSchema), tableName}),
/*notNullColumns=*/folly::F14FastSet<std::string>{});
auto write = std::make_shared<core::TableWriteNode>(
"writenodeid",
source->outputType(),
Expand Down
4 changes: 3 additions & 1 deletion axiom/optimizer/v2/EmitPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,9 @@ velox::core::PlanNodePtr Emitter::emitTableWrite(const TableWrite& tableWrite) {
VELOX_CHECK(!finishWrite_, "Only one TableWrite per query is supported");
auto insertTableHandle =
std::make_shared<const velox::core::InsertTableHandle>(
connectorId, handle->veloxHandle());
connectorId,
handle->veloxHandle(),
/*notNullColumns=*/folly::F14FastSet<std::string>{});
finishWrite_ = FinishWrite{
metadata,
connectorId,
Expand Down
Loading