-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
Description
- 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
- Give supporting information about tools and operating systems. Give relevant product version numbers
Not applicable