Skip to content

Commit

Permalink
Remove assert (#96)
Browse files Browse the repository at this point in the history
* Fix assert

* checkstyle
  • Loading branch information
jogrogan authored Jan 24, 2025
1 parent 6ed28da commit 9ee160d
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
import java.util.stream.Collectors;

import org.apache.calcite.plan.Convention;
import org.apache.calcite.plan.RelOptUtil;
import org.apache.calcite.rel.RelNode;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rel.type.RelDataTypeField;
import org.apache.calcite.util.Litmus;
import org.apache.calcite.util.Pair;

import com.google.common.annotations.VisibleForTesting;
Expand Down Expand Up @@ -135,7 +133,6 @@ public Pipeline pipeline(String name) throws SQLException {
Sink sink = new Sink(sinkDatabase, sinkPath, sinkOptions);
ConnectionService.configure(sink, Sink.class);
Job job = new Job(name, sink, sql());
RelOptUtil.equal(sink.table(), targetRowType, "pipeline", query.getRowType(), Litmus.THROW);
deployables.addAll(DeploymentService.deployables(sink, Sink.class));
deployables.addAll(DeploymentService.deployables(job, Job.class));
return new Pipeline(deployables);
Expand Down Expand Up @@ -163,7 +160,6 @@ public Function<SqlDialect, String> sql() throws SQLException {
script = script.database(sink.schema());
script = script.connector(sink.schema(), sink.table(), targetRowType, sinkConfigs);
script = script.insert(sink.schema(), sink.table(), query, targetFields);
RelOptUtil.equal(sink.table(), targetRowType, "pipeline", query.getRowType(), Litmus.THROW);
return script.seal();
}

Expand Down

0 comments on commit 9ee160d

Please sign in to comment.