Skip to content

Fetching CLOB storing JSON fails on NotSupportedError #586

@mauropagano

Description

@mauropagano
  1. What versions are you using?

3.4.2
DB is 19c but fails on 26ai too as per Anthony

  1. Is it an error or a hang or a crash?

Error

  1. What error(s) or behavior you are seeing?

oracledb.exceptions.NotSupportedError: DPY-3030: conversion from Oracle Database type DB_TYPE_CLOB to Apache Arrow format is not supported

  1. Does your application call init_oracle_client()?

No, but it fails regardless

  1. Include a runnable Python script that shows the problem.
import oracledb

conn = oracledb.connect("...")

with conn.cursor() as c:
    c.execute("create table mauro_clob_isjson (body clob, check (body is json))")
    c.execute("insert into mauro_clob_isjson values ('{\"a\":1}')")
    conn.commit()

odf = conn.fetch_df_all("select body from mauro_clob_isjson")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions