Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
jxnu-liguobin committed Dec 11, 2023
commit de6340d3b9be1d4f00dddabe4bafea07799cad69
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ public String toString() {
builder.append(" WITH DATA");
break;
case WITH_NO_DATA:
if (concurrently) {
throw new IllegalArgumentException(
"CONCURRENTLY and WITH NO DATA may not be specified together.");
}
builder.append(tableName);
builder.append(" WITH NO DATA");
if (!concurrently) {
builder.append(" WITH NO DATA");
}
break;
case DEFAULT:
builder.append(tableName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ public void deParse(RefreshMaterializedViewStatement view) {
buffer.append(" WITH DATA");
break;
case WITH_NO_DATA:
buffer.append(view.getTableName());
if (view.isConcurrently()) {
throw new IllegalArgumentException(
"CONCURRENTLY and WITH NO DATA may not be specified together.");
buffer.append(" WITH NO DATA");
}
buffer.append(view.getTableName());
buffer.append(" WITH NO DATA");
break;
case DEFAULT:
buffer.append(view.getTableName());
Expand Down