housepower / clickhouse_sinker

Easily load data from kafka to ClickHouse
https://housepower.github.io/clickhouse_sinker
Apache License 2.0
515 stars 118 forks source link

Are there codes wrong? #110

Closed intfish123 closed 3 years ago

intfish123 commented 3 years ago
typeInfo["DateTime"] = TypeInfo{Type: Date, Nullable: false}
typeInfo["Nullable(DateTime)"] = TypeInfo{Type: Date, Nullable: true}
typeInfo["DateTime64"] = TypeInfo{Type: Date, Nullable: false}
typeInfo["Nullable(DateTime64)"] = TypeInfo{Type: Date, Nullable: true}
typeInfo["ElasticDateTime"] = TypeInfo{Type: Date, Nullable: false}
typeInfo["Nullable(ElasticDateTime)"] = TypeInfo{Type: Date, Nullable: true}

DateTime Nullable(DateTime) ... all types are Type: Date?

yuzhichang commented 3 years ago

Good catch!