From 2a1eceef0343a5cfedf7b99517838adce43e538b Mon Sep 17 00:00:00 2001 From: proller Date: Sat, 29 Apr 2017 00:17:52 +0300 Subject: [PATCH] Try fix macos build --- dbms/src/Common/iostream_debug_helpers.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/dbms/src/Common/iostream_debug_helpers.cpp b/dbms/src/Common/iostream_debug_helpers.cpp index 685a73ca366..4ae42fafeae 100644 --- a/dbms/src/Common/iostream_debug_helpers.cpp +++ b/dbms/src/Common/iostream_debug_helpers.cpp @@ -38,8 +38,12 @@ std::ostream & operator<<(std::ostream & stream, const DB::IDataType & what) std::ostream & operator<<(std::ostream & stream, const DB::IStorage & what) { - stream << "IStorage(name = " << what.getName() << ", tableName = " << what.getTableName() << ")" - << " {" << what.getColumnsList() << "}"; + stream << "IStorage(name = " << what.getName() << ", tableName = " << what.getTableName() << ") {" +// TODO: uncomment #if and fix me: +#if !defined(__APPLE__) + << what.getColumnsList() +#endif + << "}"; // isRemote supportsSampling supportsFinal supportsPrewhere supportsParallelReplicas return stream; } @@ -59,7 +63,12 @@ std::ostream & operator<<(std::ostream & stream, const DB::IFunction & what) std::ostream & operator<<(std::ostream & stream, const DB::Block & what) { - stream << "Block(data = " << what.getColumns() << ")"; + stream << "Block(" +// TODO: uncomment #if and fix me: +#if !defined(__APPLE__) + << "data = " << what.getColumns() +#endif + << ")"; return stream; }