Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(3524): improve pull query error message (MINOR) #3540

Merged
merged 1 commit into from
Oct 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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