Merge pull request #10618 from matwey/fix/capnproto_version

Fix capnproto version check for capnp::UnalignedFlatArrayMessageReader
This commit is contained in:
alexey-milovidov 2020-05-02 14:43:13 +03:00 committed by GitHub
commit 3289f89721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ bool CapnProtoRowInputFormat::readRow(MutableColumns & columns, RowReadExtension
auto array = readMessage();
#if CAPNP_VERSION >= 8000
#if CAPNP_VERSION >= 7000 && CAPNP_VERSION < 8000
capnp::UnalignedFlatArrayMessageReader msg(array);
#else
capnp::FlatArrayMessageReader msg(array);