Skip to content

Commit 37c1f15

Browse files
committed
fix
1 parent 796018b commit 37c1f15

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/query/ast/src/ast/statements/table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ pub struct AnalyzeTableStmt {
724724
pub catalog: Option<Identifier>,
725725
pub database: Option<Identifier>,
726726
pub table: Identifier,
727-
pub full: bool,
727+
pub no_scan: bool,
728728
}
729729

730730
impl Display for AnalyzeTableStmt {
@@ -737,8 +737,8 @@ impl Display for AnalyzeTableStmt {
737737
.chain(&self.database)
738738
.chain(Some(&self.table)),
739739
)?;
740-
if self.full {
741-
write!(f, " FULL")?;
740+
if self.no_scan {
741+
write!(f, " NOSCAN")?;
742742
}
743743

744744
Ok(())

src/query/ast/src/parser/statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ pub fn statement_body(i: Input) -> IResult<Statement> {
11761176
catalog,
11771177
database,
11781178
table,
1179-
full: no_scan.is_none(),
1179+
no_scan: no_scan.is_some(),
11801180
})
11811181
},
11821182
);

src/query/service/src/interpreters/interpreter_table_analyze.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Interpreter for AnalyzeTableInterpreter {
114114
return Ok(PipelineBuildResult::create());
115115
};
116116

117-
if !self.plan.full {
117+
if self.plan.no_scan {
118118
let operator = table.get_operator();
119119
let cluster_key_id = table.cluster_key_id();
120120
let mut mutator =

src/query/sql/src/planner/binder/ddl/table.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ impl Binder {
13861386
catalog,
13871387
database,
13881388
table,
1389-
full,
1389+
no_scan,
13901390
} = stmt;
13911391

13921392
let (catalog, database, table) =
@@ -1396,7 +1396,7 @@ impl Binder {
13961396
catalog,
13971397
database,
13981398
table,
1399-
full: *full,
1399+
no_scan: *no_scan,
14001400
})))
14011401
}
14021402

src/query/sql/src/planner/plans/ddl/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ pub struct AnalyzeTablePlan {
205205
pub catalog: String,
206206
pub database: String,
207207
pub table: String,
208-
pub full: bool,
208+
pub no_scan: bool,
209209
}
210210

211211
impl AnalyzeTablePlan {

0 commit comments

Comments
 (0)