Skip to content

Support pyarrow.date32 ingest #535

@mauropagano

Description

@mauropagano
  1. Describe your new request in detail

Support ingesting pyarrow.date32 column type.
This would be really useful because dates without a time component are read as such by Arrow.
Right now the only workaround is to explicitly cast the table before passing it to oracledb

import oracledb
import pyarrow as pa
import datetime
  
a = pa.array([datetime.date(2025, 11, 1)], type=pa.date32())
t = pa.Table.from_arrays([a], names=["a"])
# pyarrow.Table
# a: date32[day]
# ----
# a: [[2025-11-01]]
conn = oracledb.connect("...")                                                                                                                                                                                                                                                                                                                                   
cursor = conn.cursor()
cursor.executemany("insert into insert_pq (start_month) values (:1)", t)
# oracledb.exceptions.NotSupportedError: DPY-3032: conversion from Arrow format "tdD" to Oracle Database is not supported
  1. Give supporting information about tools and operating systems. Give relevant product version numbers
    Not applicable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions