Skip to content

Commit

Permalink
add table name when complaining about unknown columns
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Mar 6, 2024
1 parent de17541 commit b6a4611
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void Query::parseStatsLine(char *line)
Column *column = _table->column(column_name);
if (!column) {
column = createDummyColumn(column_name);
logger(LOG_DEBUG, "Replacing non-existing column '%s' with null column", column_name);
logger(LOG_DEBUG, "%s: Replacing non-existing column '%s' with null column", _table->name(), column_name);
}

StatsColumn *stats_col;
Expand Down Expand Up @@ -483,7 +483,7 @@ void Query::parseFilterLine(char *line, bool is_filter)

Column *column = _table->column(column_name);
if (!column) {
logger(LOG_DEBUG, "Replacing non-existing column '%s' with null column", column_name);
logger(LOG_DEBUG, "%s: Replacing non-existing column '%s' with null column", _table->name(), column_name);
column = createDummyColumn(column_name);
}

Expand Down Expand Up @@ -534,7 +534,7 @@ void Query::parseSortLine(char *line)
if( column_name != 0 ) {
Column *column = _table->column(column_name);
if (column == 0) {
logger(LOG_DEBUG, "Replacing non-existing column '%s' with null column", column_name);
logger(LOG_DEBUG, "%s: Replacing non-existing column '%s' with null column", _table->name(), column_name);
column = createDummyColumn(column_name);
}

Expand Down Expand Up @@ -576,7 +576,7 @@ void Query::parseColumnsLine(char *line)
if (column)
_columns.push_back(column);
else {
logger(LOG_DEBUG, "Replacing non-existing column '%s' with null column", column_name);
logger(LOG_DEBUG, "%s: Replacing non-existing column '%s' with null column", _table->name(), column_name);
Column *col = createDummyColumn(column_name);
_columns.push_back(col);
}
Expand Down

0 comments on commit b6a4611

Please sign in to comment.