Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(query): fix typo #11893

Merged
merged 1 commit into from
Jun 27, 2023
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
2 changes: 1 addition & 1 deletion src/query/catalog/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub trait Table: Sync + Send {
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
let (_, _) = (ctx, push_downs);
Err(ErrorCode::Unimplemented(format!(
Expand Down
2 changes: 1 addition & 1 deletion src/query/service/src/table_functions/async_crash_me.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Table for AsyncCrashMeTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
// dummy statistics
Ok((PartStatistics::new_exact(1, 1, 1, 1), Partitions::default()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Table for InferSchemaTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Table for ListStageTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Table for NumbersTable {
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
let max_block_size = ctx.get_settings().get_max_block_size()?;
let mut limit = None;
Expand Down
2 changes: 1 addition & 1 deletion src/query/service/src/table_functions/openai/ai_to_sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Table for GPT2SQLTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
// dummy statistics
Ok((PartStatistics::default_exact(), Partitions::default()))
Expand Down
2 changes: 1 addition & 1 deletion src/query/service/src/table_functions/srf/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl Table for RangeTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
// dummy statistics
Ok((PartStatistics::default_exact(), Partitions::default()))
Expand Down
2 changes: 1 addition & 1 deletion src/query/service/src/table_functions/sync_crash_me.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Table for SyncCrashMeTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
// dummy statistics
Ok((PartStatistics::new_exact(1, 1, 1, 1), Partitions::default()))
Expand Down
4 changes: 2 additions & 2 deletions src/query/storages/fuse/src/fuse_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ impl Table for FuseTable {
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
dyn_run: bool,
dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
self.do_read_partitions(ctx, push_downs, dyn_run).await
self.do_read_partitions(ctx, push_downs, dry_run).await
}

#[tracing::instrument(level = "debug", name = "fuse_table_read_data", skip(self, ctx, pipeline), fields(ctx.id = ctx.get_id().as_str()))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Table for ClusteringInformationTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Table for FuseBlockTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Table for FuseSegmentTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl Table for FuseSnapshotTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl Table for FuseStatisticTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/hive/hive/src/hive_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ impl Table for HiveTable {
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
self.do_read_partitions(ctx, push_downs).await
}
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/iceberg/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl Table for IcebergTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
todo!()
}
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/memory/src/memory_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl Table for MemoryTable {
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
let blocks = self.blocks.read();

Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/null/src/null_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl Table for NullTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/parquet/src/parquet_table/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl Table for ParquetTable {
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
self.do_read_partitions(ctx, push_downs).await
}
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/random/src/random_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Table for RandomTable {
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
let settings = ctx.get_settings();
let block_size = settings.get_max_block_size()? as usize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Table for ResultScan {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/stage/src/stage_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Table for StageTable {
&self,
ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
let stage_info = &self.table_info;
// User set the files.
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/system/src/log_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl<Event: SystemLogElement + 'static> Table for SystemLogTable<Event> {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down
4 changes: 2 additions & 2 deletions src/query/storages/system/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl<TTable: 'static + SyncSystemTable> Table for SyncOneBlockSystemTable<TTable
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
self.inner_table.get_partitions(ctx, push_downs)
}
Expand Down Expand Up @@ -231,7 +231,7 @@ impl<TTable: 'static + AsyncSystemTable> Table for AsyncOneBlockSystemTable<TTab
&self,
ctx: Arc<dyn TableContext>,
push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
self.inner_table.get_partitions(ctx, push_downs).await
}
Expand Down
2 changes: 1 addition & 1 deletion src/query/storages/system/src/tracing_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Table for TracingTable {
&self,
_ctx: Arc<dyn TableContext>,
_push_downs: Option<PushDownInfo>,
_dyn_run: bool,
_dry_run: bool,
) -> Result<(PartStatistics, Partitions)> {
Ok((PartStatistics::default(), Partitions::default()))
}
Expand Down