Giter Club home page Giter Club logo

Comments (4)

sundy-li avatar sundy-li commented on July 19, 2024 1

确实是bug,拼写错了。。

from clickhouse_sinker.

sundy-li avatar sundy-li commented on July 19, 2024

这里有个类型 判断bug, 配置文件 你将 FixedString(16) 改为 FixedString 试试

from clickhouse_sinker.

levsion avatar levsion commented on July 19, 2024

已经改成FixedString了,但是我设置autoSchema为true,所以应该直接去读数据库里面读类型了,最后我将autoSchema改成false,然后value.go里面定义读类型是FixString,而不是FixedString,这个是不是bug:
func switchType(typ string) string {
switch typ {
case "Date", "DateTime", "UInt8", "UInt16", "UInt32", "UInt64", "Int8",
"Int16", "Int32", "Int64", "Nullable(Date)", "Nullable(DateTime)",
"Nullable(UInt8)", "Nullable(UInt16)", "Nullable(UInt32)", "Nullable(UInt64)",
"Nullable(Int8)", "Nullable(Int16)", "Nullable(Int32)", "Nullable(Int64)":
return "int"
case "Array(Date)", "Array(DateTime)", "Array(UInt8)", "Array(UInt16)", "Array(UInt32)",
"Array(UInt64)", "Array(Int8)", "Array(Int16)", "Array(Int32)", "Array(Int64)":
return "intArray"
case "String", "FixString", "Nullable(String)":
return "string"
case "Array(String)", "Array(FixString)":
return "stringArray"
case "Float32", "Float64", "Nullable(Float32)", "Nullable(Float64)":
return "float"
case "Array(Float32)", "Array(Float64)":
return "floatArray"
case "ElasticDateTime":
return "ElasticDateTime"
default:
panic("unsupport type " + typ)
}
}

from clickhouse_sinker.

levsion avatar levsion commented on July 19, 2024

这里有个类型 判断bug, 配置文件 你将 FixedString(16) 改为 FixedString 试试

已经改成FixedString了,但是我设置autoSchema为true,所以应该直接去读数据库里面读类型了,最后我将autoSchema改成false,然后value.go里面定义读类型是FixString,而不是FixedString,这个是不是bug:看我上一个回答哈

from clickhouse_sinker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.