Skip to content

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Oct 13, 2023
1 parent 46b7384 commit 8efc56c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/stream/src/task/stream_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,10 @@ impl LocalStreamManagerCore {
// Build the executor with params.
let executor_params = ExecutorParams {
env: env.clone(),
pk_indices,
pk_indices: pk_indices.clone(),
executor_id,
operator_id,
identity,
identity: identity.clone(),
op_info,
schema,
input,
Expand All @@ -583,6 +583,11 @@ impl LocalStreamManagerCore {
};

let executor = create_executor(executor_params, self, node, store).await?;
assert_eq!(
executor.pk_indices(),
&pk_indices,
"`pk_indices` of {identity} not consistent with what derived by optimizer"
);

// Wrap the executor for debug purpose.
let executor = WrapperExecutor::new(
Expand Down

0 comments on commit 8efc56c

Please sign in to comment.