@@ -29,6 +29,11 @@ void SchemaReader::mark_column_as_timestamp(BaseColumnReader* column_reader) {
2929 return std::get<int64_t >(static_cast <Int64ColumnReader*>(m_timestamp_column)
3030 ->extract_value (m_cur_message));
3131 };
32+ } else if (m_timestamp_column->get_type () == NodeType::DeltaInteger) {
33+ m_get_timestamp = [this ]() {
34+ return std::get<int64_t >(static_cast <DeltaEncodedInt64ColumnReader*>(m_timestamp_column)
35+ ->extract_value (m_cur_message));
36+ };
3237 } else if (m_timestamp_column->get_type () == NodeType::Float) {
3338 m_get_timestamp = [this ]() {
3439 return static_cast <epochtime_t >(
@@ -428,6 +433,7 @@ size_t SchemaReader::generate_structured_array_template(
428433 m_json_serializer.add_op (JsonSerializer::Op::EndArray);
429434 break ;
430435 }
436+ case NodeType::DeltaInteger:
431437 case NodeType::Integer: {
432438 m_json_serializer.add_op (JsonSerializer::Op::AddIntValue);
433439 m_reordered_columns.push_back (m_columns[column_idx++]);
@@ -512,6 +518,7 @@ size_t SchemaReader::generate_structured_object_template(
512518 m_json_serializer.add_op (JsonSerializer::Op::EndArray);
513519 break ;
514520 }
521+ case NodeType::DeltaInteger:
515522 case NodeType::Integer: {
516523 m_json_serializer.add_op (JsonSerializer::Op::AddIntField);
517524 m_reordered_columns.push_back (m_columns[column_idx++]);
@@ -620,6 +627,7 @@ void SchemaReader::generate_json_template(int32_t id) {
620627 m_json_serializer.add_op (JsonSerializer::Op::EndArray);
621628 break ;
622629 }
630+ case NodeType::DeltaInteger:
623631 case NodeType::Integer: {
624632 m_json_serializer.add_op (JsonSerializer::Op::AddIntField);
625633 m_reordered_columns.push_back (m_column_map[child_global_id]);
0 commit comments