diff options
author | vvvv <vvvv@yandex-team.ru> | 2022-03-09 13:38:24 +0300 |
---|---|---|
committer | vvvv <vvvv@yandex-team.ru> | 2022-03-09 13:38:24 +0300 |
commit | 1097c234cd792a78a9695f57c4d1f27ea79bfbde (patch) | |
tree | 6ea1b0bb8c5d97f25eed2ede7fb5f230ccb0e2ba | |
parent | 5dd00e1ace75931467916dd337d7dbf5dd0c17ce (diff) | |
download | ydb-1097c234cd792a78a9695f57c4d1f27ea79bfbde.tar.gz |
YQL-13710 custom bytea handling
ref:7ae4cf5f2f4c453f5a26d17829c0e5b2287cd765
-rw-r--r-- | ydb/library/yql/parser/pg_wrapper/comp_factory.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp b/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp index 017810f127..b62a76369c 100644 --- a/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp +++ b/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp @@ -648,6 +648,7 @@ void WriteYsonValuePg(TYsonResultWriter& writer, const NUdf::TUnboxedValuePod& v case FLOAT8OID: ret = ::FloatToString(DatumGetFloat8(ScalarDatumFromPod(value))); break; + case BYTEAOID: case VARCHAROID: case TEXTOID: { const auto x = (const text*)PointerDatumFromPod(value); @@ -731,6 +732,7 @@ void PGPackImpl(const TPgType* type, const NUdf::TUnboxedValuePod& value, TBuffe NDetails::PutRawData(x, buf); break; } + case BYTEAOID: case VARCHAROID: case TEXTOID: { const auto x = (const text*)PointerDatumFromPod(value); @@ -807,6 +809,7 @@ NUdf::TUnboxedValue PGUnpackImpl(const TPgType* type, TStringBuf& buf) { const auto x = NDetails::GetRawData<double>(buf); return ScalarDatumToPod(Float8GetDatum(x)); } + case BYTEAOID: case VARCHAROID: case TEXTOID: { SET_MEMORY_CONTEXT; |