Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Nov 7, 2024
1 parent e2f1722 commit d9d9ac8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/frontend/src/binder/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,16 @@ impl Binder {
}
} else {
if let Some(ctx) = self.secure_compare_context.as_ref() {
if ident.real_value() == ctx.secret_name {
if ident.real_value() == ctx.secret_name {
Ok(InputRef::new(0, DataType::Varchar).into())
} else if ident.real_value() == ctx.column_name {
Ok(InputRef::new(1, DataType::Bytea).into())
} else {
Err(
ErrorCode::ItemNotFound(format!("Unknown arg: {}", ident.real_value()))
.into(),
)
Err(ErrorCode::ItemNotFound(format!(
"Unknown arg: {}",
ident.real_value()
))
.into())
}
} else {
self.bind_column(&[ident])
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use risingwave_common::types::DataType;
use risingwave_common::util::column_index_mapping::ColIndexMapping;
use risingwave_common::util::iter_util::ZipEqDebug;
use risingwave_connector::sink::catalog::SinkFormatDesc;
use risingwave_pb::catalog::{WatermarkDesc, PbWebhookSourceInfo};
use risingwave_pb::catalog::{PbWebhookSourceInfo, WatermarkDesc};
use risingwave_pb::stream_plan::StreamScanType;

use self::heuristic_optimizer::ApplyOrder;
Expand Down
5 changes: 4 additions & 1 deletion src/meta/model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ derive_array_from_blob!(
PbColumnCatalogArray
);
derive_from_blob!(StreamSourceInfo, risingwave_pb::catalog::PbStreamSourceInfo);
derive_from_blob!(WebhookSourceInfo, risingwave_pb::catalog::PbWebhookSourceInfo);
derive_from_blob!(
WebhookSourceInfo,
risingwave_pb::catalog::PbWebhookSourceInfo
);
derive_from_blob!(WatermarkDesc, risingwave_pb::catalog::PbWatermarkDesc);
derive_array_from_blob!(
WatermarkDescArray,
Expand Down

0 comments on commit d9d9ac8

Please sign in to comment.