We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b696540 commit c58c583Copy full SHA for c58c583
1 file changed
src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp
@@ -22,6 +22,7 @@
22
#include <Processors/Executors/PullingPipelineExecutor.h>
23
#include <Processors/QueryPlan/SourceStepWithFilter.h>
24
#include <Processors/QueryPlan/QueryPlan.h>
25
+#include <Processors/Sources/NullSource.h>
26
27
#include <Poco/Logger.h>
28
#include <Poco/Util/AbstractConfiguration.h>
@@ -520,7 +521,10 @@ void ReadFromEmbeddedRocksDB::initializePipeline(QueryPipelineBuilder & pipeline
520
521
else
522
{
523
if (keys->empty())
524
+ {
525
+ pipeline.init(Pipe(std::make_shared<NullSource>(sample_block)));
526
return;
527
+ }
528
529
::sort(keys->begin(), keys->end());
530
keys->erase(std::unique(keys->begin(), keys->end()), keys->end());
0 commit comments