Skip to content

Commit

Permalink
fix: wrong source type in pull query error message (#3885)
Browse files Browse the repository at this point in the history
Fixes: #3523

Remove the 'table' in the error message 'Table `foo` is not materialized' as it won't always be a table: it could be a stream.
  • Loading branch information
big-andy-coates authored Nov 20, 2019
1 parent 475d039 commit 65523c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@
],
"expectedError": {
"type": "io.confluent.ksql.rest.entity.KsqlStatementErrorMessage",
"message": "Table 'X' is not materialized.",
"message": "'X' is not materialized.",
"status": 400
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ private static TableRowsEntity proxyTo(
}

private static KsqlException notMaterializedException(final SourceName sourceTable) {
return new KsqlException("Table '"
return new KsqlException("'"
+ sourceTable.toString(FormatOptions.noEscape()) + "' is not materialized. "
+ PullQueryValidator.NEW_QUERY_SYNTAX_SHORT_HELP
+ System.lineSeparator()
Expand Down

0 comments on commit 65523c7

Please sign in to comment.