From 2c51b0d010063ed149999ae7005f1a8cce6337d9 Mon Sep 17 00:00:00 2001 From: Jack Del Vecchio Date: Thu, 18 Apr 2024 20:09:15 +0000 Subject: [PATCH] HPCC-31643 Parquet Plugin does not support VARUNICODE --- plugins/parquet/parquetembed.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/plugins/parquet/parquetembed.cpp b/plugins/parquet/parquetembed.cpp index e247c3fb07c..fbca95cff2b 100644 --- a/plugins/parquet/parquetembed.cpp +++ b/plugins/parquet/parquetembed.cpp @@ -722,24 +722,13 @@ arrow::Status ParquetWriter::fieldToNode(const std::string &name, const RtlField case type_real: arrowFields.push_back(std::make_shared(name, arrow::float64())); break; - case type_string: - arrowFields.push_back(std::make_shared(name, arrow::utf8())); - break; case type_char: - arrowFields.push_back(std::make_shared(name, arrow::utf8())); - break; + case type_string: case type_varstring: - arrowFields.push_back(std::make_shared(name, arrow::utf8())); - break; case type_qstring: - arrowFields.push_back(std::make_shared(name, arrow::utf8())); - break; - case type_unicode: - arrowFields.push_back(std::make_shared(name, arrow::utf8())); - break; case type_utf8: - arrowFields.push_back(std::make_shared(name, arrow::utf8())); - break; + case type_unicode: + case type_varunicode: case type_decimal: arrowFields.push_back(std::make_shared(name, arrow::utf8())); //TODO add decimal encoding break;