remove debug

This commit is contained in:
Alexander Kuzmenkov 2021-04-23 14:00:17 +03:00
parent 54ad086753
commit 9d95ac3d66
3 changed files with 0 additions and 21 deletions

View File

@ -279,9 +279,6 @@ InterpreterSelectQuery::InterpreterSelectQuery(
, log(&Poco::Logger::get("InterpreterSelectQuery"))
, metadata_snapshot(metadata_snapshot_)
{
fmt::print(stderr, "InterpreterSelectQuery @ {} created at \n{}\n",
static_cast<const void *>(this), StackTrace().toString());
checkStackSize();
initSettings();
@ -1786,20 +1783,9 @@ void InterpreterSelectQuery::executeFetchColumns(QueryProcessingStage::Enum proc
if (!options.ignore_quota && (options.to_stage == QueryProcessingStage::Complete))
quota = context->getQuota();
fmt::print(stderr, "required columns for storage::read:\n");
for (const auto & c : required_columns)
{
fmt::print(stderr, "{}\n", c);
}
fmt::print(stderr, "processing stage for storage::read is {}\n",
processing_stage);
storage->read(query_plan, required_columns, metadata_snapshot,
query_info, context, processing_stage, max_block_size, max_streams);
WriteBufferFromOwnString ss;
query_plan.explainPlan(ss, {true});
fmt::print(stderr, "query plan after storage::read:'\n{}'\n", ss.str());
if (context->hasQueryContext() && !options.is_internal)
{
auto local_storage_id = storage->getStorageID();

View File

@ -136,10 +136,6 @@ QueryPipelinePtr QueryPlan::buildQueryPipeline(
const QueryPlanOptimizationSettings & optimization_settings,
const BuildQueryPipelineSettings & build_pipeline_settings)
{
WriteBufferFromOwnString ss;
explainPlan(ss, {true});
fmt::print(stderr, "plan at buildQueryPipeline:'\n{}'\n", ss.str());
checkInitialized();
optimize(optimization_settings);

View File

@ -553,9 +553,6 @@ void StorageDistributed::read(
Block header =
InterpreterSelectQuery(query_info.query, local_context, SelectQueryOptions(processed_stage).analyze()).getSampleBlock();
fmt::print(stderr, "header in storage::read is '{}'\n",
header.dumpStructure());
/// Return directly (with correct header) if no shard to query.
if (query_info.getCluster()->getShardsInfo().empty())
{