Skip to content

Commit 84914b7

Browse files
pre-release 2020.3 fix CEP window bug
1 parent 06570b7 commit 84914b7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/su/interference/sql/SQLGroupContainer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ public DataChunk add (DataChunk c) throws InternalException {
117117
private DataChunk add2Window(DataChunk c) throws InternalException {
118118
if (c != null) {
119119
w_.add(c);
120-
if (dc == null) {
121-
dc = c;
122-
}
123120
}
124121
if (w_.size() < wcolumnInterval) {
125122
return null;
@@ -130,6 +127,9 @@ private DataChunk add2Window(DataChunk c) throws InternalException {
130127
if (w_.size() != wcolumnInterval) {
131128
throw new InternalException();
132129
}
130+
if (dc == null) {
131+
dc = w_.get(0);
132+
}
133133
for (DataChunk c_ : w_) {
134134
final Object[] os = c_.getDcs().getValueSet();
135135
if (os.length != this.cols.size()) {

0 commit comments

Comments
 (0)