Skip to content

Commit

Permalink
fix(3524): improve pull query error message
Browse files Browse the repository at this point in the history
  • Loading branch information
big-andy-coates committed Oct 11, 2019
1 parent 5315f1e commit 4cad09c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
],
"expectedError": {
"type": "io.confluent.ksql.rest.entity.KsqlStatementErrorMessage",
"message": "Table 'X' is not materialized. KSQL currently only supports static queries on materialized aggregate tables. i.e. those created by a 'CREATE TABLE AS SELECT <fields> FROM <sources> GROUP BY <key>' style statement.",
"message": "Table 'X' is not materialized. KSQL currently only supports static queries on materialized aggregate tables. i.e. those created by a 'CREATE TABLE AS SELECT <fields>, <aggregate_functions> FROM <sources> GROUP BY <key>' style statement.",
"status": 400
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ private static KsqlException notMaterializedException(final SourceName sourceTab
"Table '" + sourceTable.toString(FormatOptions.noEscape()) + "' is not materialized."
+ " KSQL currently only supports static queries on materialized aggregate tables."
+ " i.e. those created by a"
+ " 'CREATE TABLE AS SELECT <fields> FROM <sources> GROUP BY <key>' style statement.");
+ " 'CREATE TABLE AS SELECT <fields>, <aggregate_functions> "
+ "FROM <sources> GROUP BY <key>' style statement.");
}

private static KsqlException invalidWhereClauseException(
Expand Down

0 comments on commit 4cad09c

Please sign in to comment.