You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First execute below sql with native write enabled.
droptable if exists tmp.tnm;
createtabletmp.tnm using orc as
with data_source as (
select
id as uid,
case when random() <0.1 then null else floor(random() *100) end as rec_room_id,
case when random() <0.1 then null else floor(random() *100) end as room_id,
case when random() <0.1 then null else floor(random() *100) end as dispatch_id,
case when random() <0.1 then null else floor(random() *100) end as gift_value_total,
case when random() <0.1 then null else floor(random() *100) end as follow_channel,
case when random() <0.1 then null else floor(random() *100) end as follow_user,
case when random() <0.1 then null else floor(random() *100) end as followed_channel,
case when random() <0.1 then null else floor(random() *100) end as need_filter,
case when random() <0.1 then null else floor(random() *100) end as mic_time
from range(100000)
)
select
uid,
rec_room_id,
room_id,
dispatch_id,
str_to_map(
concat(
'gift_value_total:', gift_value_total,
',follow_channel:', follow_channel,
',follow_user:', follow_user,
',followed_channel:', followed_channel,
',filter:', need_filter,
',mic_time:', mic_time
)
) as label_map,
mic_time
from
data_source;
Then download the orc file and view its content. We can see that the values of mic_time and label_map['mic_time'] don't match.
Reason: orc requires offsets[i+1] == offset[i] when the i-th row is null in MapVectorBatch, otherwise the written orc batch is not consistent with CH column. So is ListVectorBatch. But in CH, the nullable map column returned from function str_to_map maybe like:
Description
First execute below sql with native write enabled.
Then download the orc file and view its content. We can see that the values of
mic_time
andlabel_map['mic_time']
don't match.The text was updated successfully, but these errors were encountered: