apache / apache/arrow-adbc

Implement `adbc_get_table_schema` for Polars

Open
#3,421 0 comments 1 reaction 0 assignees View on GitHub
Type: enhancement
Dominant language
C#
Stars
627
Forks
217
Avg merge
17h
Merged PRs (30d)
57

Description

### What feature or improvement would you like to see?

As of [Polars 1.33.1](https://github.com/pola-rs/polars/releases/tag/py-1.33.1) `__arrow_c_schema__` was introduced on Polars.Schema (https://github.com/pola-rs/polars/pull/24365)

As of [Polars 1.32.1](https://github.com/pola-rs/polars/releases/tag/py-1.32.1) (which was yanked, so really 1.32.2), `Polars.Schema` can be initialised from an object with `__arrow_c_schema__` (https://github.com/pola-rs/polars/pull/23879)

I believe this means `adbc_get_table_schema` can be implemented for the Polars backend (correct me if mistaken).

Ref https://github.com/apache/arrow-adbc/pull/2839#discussion_r2100047698

Contributor guide

Open the contributing guide

Research direction

Start at the Polars backend implementation of `adbc_get_table_schema` and review the linked Arrow ADBC PR discussion, then check how Polars 1.32.2 exposes `__arrow_c_schema__`. Done means the method returns the table schema correctly for supported Polars versions, with the backend's existing tests covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.