Skip to content

Commit 99781c6

Browse files
committed
some more fix attempts
1 parent 4230781 commit 99781c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Storages/StorageFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,7 @@ SinkToStoragePtr StorageFile::write(
21112111
partition_strategy,
21122112
sink_creator,
21132113
context,
2114-
metadata_snapshot->getSampleBlock()
2114+
std::make_shared<const Block>(metadata_snapshot->getSampleBlock())
21152115
);
21162116
}
21172117

src/Storages/StorageURL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ SinkToStoragePtr IStorageURLBase::write(const ASTPtr & query, const StorageMetad
14591459
headers,
14601460
http_method);
14611461

1462-
return std::make_shared<PartitionedSink>(partition_strategy, sink_creator, context, metadata_snapshot->getSampleBlock());
1462+
return std::make_shared<PartitionedSink>(partition_strategy, sink_creator, context, std::make_shared<const Block>(metadata_snapshot->getSampleBlock()));
14631463
}
14641464

14651465
return std::make_shared<StorageURLSink>(

0 commit comments

Comments
 (0)