1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-31 18:30:33 +03:00

chore(execplan): MCOL: 6144 prerry print filters and havings as a tree (#3712)

* MCOL-6144: print Filters and Having indented for better CSEP visualization
This commit is contained in:
Leonid Fedorov
2025-08-19 16:18:06 +04:00
committed by GitHub
parent 56d04cb711
commit 98a301c1c5
7 changed files with 283 additions and 37 deletions

View File

@@ -292,6 +292,26 @@ const string SimpleColumn::toString() const
return output.str();
}
const string SimpleColumn::toString(bool compact) const
{
if (!compact)
{
// Use the original detailed format
return toString();
}
ostringstream output;
// Compact format for tree display - let tree printer handle indentation
output << "Column: " << data();
datatypes::Charset cs(fResultType.charsetNumber);
output << endl
<< "Info: " << schemaName() << "." << tableName() << "." << columnName()
<< " (Type: " << colDataTypeToString(fResultType.colDataType) << ", OID: " << oid() << ")";
return output.str();
}
string SimpleColumn::toCppCode(IncludeSet& includes) const
{
includes.insert("simplecolumn.h");