Skip to content

c/driver/postgresql: Implement COPY Writer support for time (ms, ns, s) types #3841

@Mandukhai-Alimaa

Description

@Mandukhai-Alimaa

What feature or improvement would you like to see?

FAILED tests/test_ingest.py::TestIngest::test_create[postgresql:15+:ingest/time_ms] - adbc_driver_manager.InternalError: INTERNAL: nanoarrow call failed: writer.InitFieldWriters(type_resolver, &na_error) = (22) Invalid argument. COPY Writer not implemented for type 20
FAILED tests/test_ingest.py::TestIngest::test_create[postgresql:15+:ingest/time_ns] - adbc_driver_manager.InternalError: INTERNAL: nanoarrow call failed: writer.InitFieldWriters(type_resolver, &na_error) = (2) No such file or directory.
FAILED tests/test_ingest.py::TestIngest::test_create[postgresql:15+:ingest/time_s] - adbc_driver_manager.InternalError: INTERNAL: nanoarrow call failed: writer.InitFieldWriters(type_resolver, &na_error) = (22) Invalid argument. COPY Writer not implemented for type 20
FAILED tests/test_query.py::TestQuery::test_query[postgresql:15+:type/bind/time_ms] - adbc_driver_manager.InternalError: INTERNAL: nanoarrow call failed: MakeCopyFieldWriter(bind_schema->children[i], array_view->children[i], type_resolver, &writer, &na_error) = (22) Invalid argument. COPY Writer not implemented for type 20
FAILED tests/test_query.py::TestQuery::test_query[postgresql:15+:type/bind/time_ns] - adbc_driver_manager.InternalError: INTERNAL: nanoarrow call failed: MakeCopyFieldWriter(bind_schema->children[i], array_view->children[i], type_resolver, &writer, &na_error) = (2) No such file or directory.
FAILED tests/test_query.py::TestQuery::test_query[postgresql:15+:type/bind/time_s] - adbc_driver_manager.InternalError: INTERNAL: nanoarrow call failed: MakeCopyFieldWriter(bind_schema->children[i], array_view->children[i], type_resolver, &writer, &na_error) = (22) Invalid argument. COPY Writer not implemented for type 20

These tests are being skipped right now because the PostgreSQL COPY Writer does not support these Arrow time types, throwing "COPY Writer not implemented for type 20" error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions