| 33 | } |
| 34 | |
| 35 | void TableExpressionModifiers::updateTreeHash(SipHash & hash_state) const |
| 36 | { |
| 37 | hash_state.update(has_final); |
| 38 | hash_state.update(sample_size_ratio.has_value()); |
| 39 | hash_state.update(sample_offset_ratio.has_value()); |
| 40 | hash_state.update(stream_settings.has_value()); |
| 41 | |
| 42 | if (sample_size_ratio.has_value()) |
| 43 | { |
| 44 | hash_state.update(sample_size_ratio->numerator); |
| 45 | hash_state.update(sample_size_ratio->denominator); |
| 46 | } |
| 47 | |
| 48 | if (sample_offset_ratio.has_value()) |
| 49 | { |
| 50 | hash_state.update(sample_offset_ratio->numerator); |
| 51 | hash_state.update(sample_offset_ratio->denominator); |
| 52 | } |
| 53 | |
| 54 | if (stream_settings.has_value()) |
| 55 | { |
| 56 | if (stream_settings->cursor_tree) |
| 57 | { |
| 58 | for (const auto & entry : cursorTreeToMap(stream_settings->cursor_tree)) |
| 59 | { |
| 60 | const auto & tuple = entry.safeGet<Tuple>(); |
| 61 | hash_state.update(tuple.at(0).safeGet<String>()); |
| 62 | hash_state.update(tuple.at(1).safeGet<Int64>()); |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | void serializeRational(TableExpressionModifiers::Rational val, WriteBuffer & out) |
| 69 | { |
no test coverage detected