MCPcopy Create free account
hub / github.com/bytedance/bolt / jit_ComplexTypeRowCmpRow

Function jit_ComplexTypeRowCmpRow

bolt/exec/RowContainer.cpp:1635–1651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1633 bytedance::bolt::StringView right = *(bytedance::bolt::StringView*)r;
1634 auto ans = left.compare(right);
1635 return ans == 0 ? 0 : (ans > 0 ? 1 : -1);
1636}
1637
1638__attribute__((__visibility__("default"))) int32_t jit_ComplexTypeRowCmpRow(
1639 char* left,
1640 char* right,
1641 int64_t typePtr,
1642 int32_t offset,
1643 int8_t nullFirst,
1644 int8_t ascending) {
1645 auto leftStream =
1646 bytedance::bolt::exec::RowContainer::prepareRead(left, offset);
1647 auto rightStream =
1648 bytedance::bolt::exec::RowContainer::prepareRead(right, offset);
1649 return bytedance::bolt::exec::ContainerRowSerde::compare(
1650 *leftStream,
1651 *rightStream,
1652 reinterpret_cast<bytedance::bolt::Type*>(typePtr),
1653 {static_cast<bool>(nullFirst), static_cast<bool>(ascending), false});
1654}

Callers

nothing calls this directly

Calls 2

prepareReadFunction · 0.85
compareFunction · 0.70

Tested by

no test coverage detected