My end goal is to execute ClickHouseRowBinaryProcessor.TupleSerializer.serialize, but I always get an IndexOutOfBoundsException because ClickHouseTupleValue seems to always merge all the values together when creating it.
I tried:
ClickHouseTupleValue.of("Foo", "Bar") <- But this creates two separated ClickHouseTupleValue("Foo") and ClickHouseTupleValue("Bar"). So .serialize throws an IndexOutOfBoundsException
ClickHouseTupleValue.of(("Foo", "Bar")) <- But this creates one combined ClickHouseTupleValue("(Foo,Bar)")
ClickHouseTupleValue.of(List(("Foo", "Bar"))) <- But this creates one combined ClickHouseTupleValue("List(Foo,Bar)")
ClickHouseTupleValue.of(List(("Foo", "Bar"))) <- This one does the same as the previous one
I tried to access the second constructor of ClickHouseTupleValue:
public static ClickHouseTupleValue of(ClickHouseValue ref, List<Object> value)
But it always seems to go into the first one no matter what:
public static ClickHouseTupleValue of(Object... value)
Am I doing something wrong? Or how can I reach a situation where ClickHouseTupleValue.asTuple() returns anything with a size > 1?
My end goal is to execute
ClickHouseRowBinaryProcessor.TupleSerializer.serialize
, but I always get anIndexOutOfBoundsException
becauseClickHouseTupleValue
seems to always merge all the values together when creating it.I tried:
ClickHouseTupleValue.of("Foo", "Bar")
<- But this creates two separatedClickHouseTupleValue("Foo")
andClickHouseTupleValue("Bar")
. So.serialize
throws anIndexOutOfBoundsException
ClickHouseTupleValue.of(("Foo", "Bar"))
<- But this creates one combinedClickHouseTupleValue("(Foo,Bar)")
ClickHouseTupleValue.of(List(("Foo", "Bar")))
<- But this creates one combinedClickHouseTupleValue("List(Foo,Bar)")
ClickHouseTupleValue.of(List(("Foo", "Bar")))
<- This one does the same as the previous oneI tried to access the second constructor of
ClickHouseTupleValue
:But it always seems to go into the first one no matter what:
Am I doing something wrong? Or how can I reach a situation where
ClickHouseTupleValue.asTuple()
returns anything with a size > 1?