Skip to content

Commit

Permalink
fix: add commmit suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
nae701 committed Aug 9, 2020
1 parent b748f32 commit fed21ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -146,7 +146,8 @@ public OutputNode buildPlan() {
if (analysis.getRefinementInfo().isPresent()
&& analysis.getRefinementInfo().get().getOutputRefinement() == OutputRefinement.FINAL) {
if (!ksqlConfig.getBoolean(KsqlConfig.KSQL_SUPPRESS_ENABLED)) {
throw new KsqlException("Suppression is currently disabled in the KsqlConfig.");
throw new KsqlException("Suppression is currently disabled. You can enable it by setting "
+ KsqlConfig.KSQL_SUPPRESS_ENABLED + " to true");
}
if (!(analysis.getGroupBy().isPresent() && analysis.getWindowExpression().isPresent())) {
throw new KsqlException("EMIT FINAL is only supported for windowed aggregations.");
Expand Down
Expand Up @@ -98,7 +98,7 @@ <K> KTableHolder<K> build(
final long maxBytes = queryBuilder.getKsqlConfig().getLong(
KsqlConfig.KSQL_SUPPRESS_BUFFER_SIZE);

if (maxBytes == -1) {
if (maxBytes < 0) {
strictBufferConfig = Suppressed.BufferConfig.unbounded();
} else {
strictBufferConfig = Suppressed.BufferConfig
Expand Down

0 comments on commit fed21ae

Please sign in to comment.