Skip to content

Commit 9e64e71

Browse files
authored
fix(cubestore): Mark nullable fields for system.cache/queue/queue_results (#6984)
1 parent ace2054 commit 9e64e71

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rust/cubestore/cubestore/src/queryplanner/info_schema/system_cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ impl InfoSchemaTableDef for SystemCacheTableDef {
2424
fn schema(&self) -> Vec<Field> {
2525
vec![
2626
Field::new("id", DataType::Utf8, false),
27-
Field::new("prefix", DataType::Utf8, false),
27+
Field::new("prefix", DataType::Utf8, true),
2828
Field::new(
2929
"expire",
3030
DataType::Timestamp(TimeUnit::Nanosecond, None),
31-
false,
31+
true,
3232
),
3333
Field::new("value", DataType::Utf8, false),
3434
]

rust/cubestore/cubestore/src/queryplanner/info_schema/system_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl InfoSchemaTableDef for SystemQueueTableDef {
2424
fn schema(&self) -> Vec<Field> {
2525
vec![
2626
Field::new("id", DataType::Utf8, false),
27-
Field::new("prefix", DataType::Utf8, false),
27+
Field::new("prefix", DataType::Utf8, true),
2828
Field::new(
2929
"created",
3030
DataType::Timestamp(TimeUnit::Nanosecond, None),

rust/cubestore/cubestore/src/queryplanner/info_schema/system_queue_results.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl InfoSchemaTableDef for SystemQueueResultsTableDef {
6666
Arc::new(StringArray::from(
6767
items
6868
.iter()
69-
.map(|row| format!("{:?}", row.get_row().get_value()))
69+
.map(|row| row.get_row().get_value().clone())
7070
.collect::<Vec<_>>(),
7171
))
7272
}),

0 commit comments

Comments
 (0)