Skip to content
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
@@ -1,6 +1,8 @@
package org.dbsp.sqlCompiler.compiler.visitors.outer;

import org.dbsp.sqlCompiler.circuit.DBSPDeclaration;
import org.dbsp.sqlCompiler.circuit.operator.DBSPOperator;
import org.dbsp.sqlCompiler.circuit.operator.DBSPOperatorWithError;
import org.dbsp.sqlCompiler.circuit.operator.DBSPSimpleOperator;
import org.dbsp.sqlCompiler.compiler.DBSPCompiler;
import org.dbsp.sqlCompiler.compiler.visitors.inner.InnerVisitor;
Expand Down Expand Up @@ -30,6 +32,20 @@ public void postorder(DBSPSimpleOperator operator) {
this.innerVisitor.setOperatorContext(null);
}

@Override
public void postorder(DBSPOperatorWithError operator) {
this.innerVisitor.setOperatorContext(operator);
operator.accept(this.innerVisitor);
this.innerVisitor.setOperatorContext(null);
}

@Override
public void postorder(DBSPOperator operator) {
this.innerVisitor.setOperatorContext(operator);
operator.accept(this.innerVisitor);
this.innerVisitor.setOperatorContext(null);
}

@Override
public void postorder(DBSPDeclaration decl) {
if (this.processDeclarations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -885,4 +885,22 @@ public void issue5946() {
36 | 0.36""");
}

@Test
public void issue5989() {
this.getCCS("""
CREATE TABLE ee (
ab VARCHAR(110) NOT NULL PRIMARY KEY,
b VARCHAR(70) NOT NULL,
c SMALLINT NOT NULL,
d BIGINT NOT NULL PRIMARY KEY LATENESS 67::BIGINT,
e VARCHAR(60) NOT NULL ,
f VARCHAR(60) NOT NULL ,
g DECIMAL(38, 10),
h DECIMAL(38, 10),
i INT,
j INT,
k BOOLEAN,
l TIMESTAMP
) WITH ('materialized' = 'true');""");
}
}
Loading