More fixes

This commit is contained in:
Amesaru 2021-04-16 18:59:32 +03:00 committed by Amesaru
parent b7b21426b9
commit f4f6e17bcd
4 changed files with 5 additions and 9 deletions

View File

@ -96,8 +96,6 @@
#pragma GCC optimize("-fno-var-tracking-assignments")
#endif
/// http://en.wikipedia.org/wiki/ANSI_escape_code
#define CLEAR_TO_END_OF_LINE "\033[K"
namespace DB
@ -2202,7 +2200,7 @@ private:
current_format = "Vertical";
/// It is not clear how to write progress with parallel formatting. It may increase code complexity significantly.
if (!need_render_progress)
if (!progress_bar.getNeedRenderProgress())
block_out_stream = context->getOutputStreamParallelIfPossible(current_format, *out_buf, block);
else
block_out_stream = context->getOutputStream(current_format, *out_buf, block);
@ -2735,8 +2733,6 @@ public:
}
};
}
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wmissing-declarations"
@ -2765,3 +2761,4 @@ int mainEntryClickHouseClient(int argc, char ** argv)
return 1;
}
}
}

View File

@ -42,8 +42,6 @@ private:
void setupUsers();
void cleanup();
void updateProgress(const Progress &value);
void writeProgress();
protected:
SharedContextHolder shared_context;

View File

@ -5,8 +5,7 @@
#include <Databases/DatabaseMemory.h>
/// http://en.wikipedia.org/wiki/ANSI_escape_code
#define CLEAR_TO_END_OF_LINE "\033[K"
namespace DB {

View File

@ -3,6 +3,8 @@
#include "../Common/Stopwatch.h"
#include "../IO/Progress.h"
/// http://en.wikipedia.org/wiki/ANSI_escape_code
#define CLEAR_TO_END_OF_LINE "\033[K"
namespace DB
{