Skip to content

Commit 6cf9fc3

Browse files
authored
Merge pull request #7718 from sundy-li/hot-fix-settings
feat(query): fix setting value as_string
2 parents c6d644d + 246acf2 commit 6cf9fc3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/meta/types/src/user_setting.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ impl UserSettingValue {
6464
pub fn as_string(&self) -> Result<String> {
6565
match self {
6666
UserSettingValue::String(v) => Ok(v.to_owned()),
67-
other => Result::Err(ErrorCode::BadDataValueType(format!(
68-
"Unexpected type:{:?} to get u64 number",
69-
other
70-
))),
67+
UserSettingValue::UInt64(v) => Ok(format!("{}", v)),
7168
}
7269
}
7370
}

tests/fuse-compat/compat-logictest/fuse_compat_write

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
statement ok
22
set global timezone = 'UTC';
33

4+
statement ok
5+
set global max_block_size = 10000;
6+
47
statement ok
58
DROP TABLE IF EXISTS fuse_compat_table;
69

0 commit comments

Comments
 (0)