Skip to content

Commit eba0602

Browse files
authored
chore: remove materialized keyword for standard stream (#18327)
remove keyword for change query
1 parent b3d75e9 commit eba0602

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ impl Display for CreateTableStmt {
207207
}
208208
match self.table_type {
209209
TableType::Normal => {}
210-
TableType::Transient => write!(f, " TRANSIENT ")?,
211-
TableType::Temporary => write!(f, " TEMPORARY ")?,
210+
TableType::Transient => write!(f, " TRANSIENT")?,
211+
TableType::Temporary => write!(f, " TEMPORARY")?,
212212
};
213213
write!(f, " TABLE")?;
214214
if let CreateOption::CreateIfNotExists = self.create_option {

src/query/ast/tests/it/testdata/stmt.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15001,7 +15001,7 @@ AlterPasswordPolicy(
1500115001
---------- Input ----------
1500215002
CREATE TEMPORARY TABLE t (a INT COMMENT 'col comment')
1500315003
---------- Output ---------
15004-
CREATE TEMPORARY TABLE t (a Int32 COMMENT 'col comment')
15004+
CREATE TEMPORARY TABLE t (a Int32 COMMENT 'col comment')
1500515005
---------- AST ------------
1500615006
CreateTable(
1500715007
CreateTableStmt {

src/query/storages/fuse/src/operations/changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl FuseTable {
172172

173173
let cte_name = format!("_change${}", suffix);
174174
format!(
175-
"with {cte_name} as materialized \
175+
"with {cte_name} as \
176176
( \
177177
select * \
178178
from ( \

0 commit comments

Comments
 (0)