Skip to content

Commit 79a9e95

Browse files
author
Sehyo Chang
committed
update column defin
1 parent 9ff339c commit 79a9e95

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

crates/fluvio-controlplane-metadata/src/topic/spec.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ impl ColumnDef {
786786
let name = parts.next().unwrap().to_string(); // always name
787787
let ty = if let Some(ty_string) = parts.next() {
788788
match ty_string {
789-
"i" => ColumnType::Int,
789+
"i" => ColumnType::Integer,
790790
"l" => ColumnType::Long,
791791
"f" => ColumnType::Float,
792792
"d" => ColumnType::Double,
@@ -804,26 +804,23 @@ impl ColumnDef {
804804

805805
#[derive(Decoder, Encoder, Default, Debug, Clone, Eq, PartialEq)]
806806
#[cfg_attr(feature = "use_serde", derive(serde::Serialize, serde::Deserialize))]
807+
#[cfg_attr(feature = "use_serde", serde(rename_all = "lowercase"))]
807808
pub enum ColumnType {
808809
#[fluvio(tag = 0)]
809-
String,
810+
#[default]
811+
Bool,
810812
#[fluvio(tag = 1)]
811-
Int,
813+
String,
812814
#[fluvio(tag = 2)]
813-
Long,
815+
Integer,
814816
#[fluvio(tag = 3)]
815-
Float,
817+
Long,
816818
#[fluvio(tag = 4)]
817-
Double,
819+
Float,
818820
#[fluvio(tag = 5)]
819-
#[default]
820-
Bool,
821+
Double,
821822
#[fluvio(tag = 6)]
822-
Bytes,
823-
#[fluvio(tag = 7)]
824823
Timestamp,
825-
#[fluvio(tag = 8)]
826-
Json,
827824
}
828825

829826
#[cfg(test)]

crates/fluvio-controlplane-metadata/tests/topic_col.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ spec:
88
partitions: 1
99
columns:
1010
- name: route
11-
ty: String
11+
ty: string
1212
- name: speed
13-
ty: Int
13+
ty: integer
1414
- name: longitude
15-
ty: Double
15+
ty: double
1616
- name: latitude
17-
ty: Double
17+
ty: double
1818
- name: time
19-
ty: Timestamp
19+
ty: timestamp
2020

k8-util/helm/fluvio-sys/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
name: fluvio-sys
33
description: A Helm chart for Fluvio
44
type: application
5-
version: 0.9.11
5+
version: 0.9.12

k8-util/helm/fluvio-sys/templates/crd_topic.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,23 @@ spec:
9595
type: object
9696
required:
9797
- name
98-
- ty
98+
- typ
9999
properties:
100100
name:
101101
type: string
102-
ty:
102+
key:
103+
type: boolean
104+
typ:
103105
type: string
104106
enum:
105-
- String
106-
- Int
107-
- Long
108-
- Float
109-
- Double
110-
- Bool
111-
- Bytes
112-
- Timestamp
113-
- Json
107+
- bool
108+
- string
109+
- integer
110+
- long
111+
- float
112+
- double
113+
- timestamp
114+
114115
subresources:
115116
status: {}
116117
additionalPrinterColumns:

0 commit comments

Comments
 (0)