From 698fb56dc8f7f8a7be858884a7501b0b07a4e310 Mon Sep 17 00:00:00 2001 From: v5r Date: Sat, 25 Nov 2017 13:14:03 +0100 Subject: [PATCH] fix crash when reading nested Nullable columns --- src/result.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/result.cpp b/src/result.cpp index d2b1aa1..1111adb 100644 --- a/src/result.cpp +++ b/src/result.cpp @@ -103,6 +103,7 @@ class ScalarConverter : public Converter { convertEntries(in, nullCol, out, offset, start, end); }); } + void processCol(ch::ColumnRef col, Rcpp::List &target, size_t targetIdx, NullCol nullCol) { auto typedCol = col->As(); @@ -126,7 +127,7 @@ class NullableConverter : public Converter { void processCol(ch::ColumnRef col, Rcpp::List &target, size_t targetIdx, NullCol) { auto typedCol = col->As(); - processCol(typedCol->Nested(), target, targetIdx, typedCol); + elemConverter->processCol(typedCol->Nested(), target, targetIdx, typedCol); } };