apache / apache/datafusion

Support multiple namespaces within catalogs

Open
#5,528 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**

Current way to identify tables/relations: `catalog.schema.table`

Be able to support more than 1 schema (aka namespace), e.g. `catalog.namespace1.namespace2.namespace3.table`

**Describe the solution you'd like**

Be able to support querying catalogs that support nested namespaces, e.g. for possible future Apache Iceberg integration

Other engines like Apache Spark also supports this

**Describe alternatives you've considered**

Don't do it (I don't believe Postgres supports it)

**Additional context**

Iceberg reference: https://iceberg.apache.org/docs/latest/spark-queries/#catalogs-with-dataframereader

Contributor guide

Open the contributing guide

Research direction

Start by reviewing DataFusion's catalog, schema, and table naming model, then compare the requested nested namespace form with the linked Iceberg reference and Spark behavior. Define how catalog.namespace1.namespace2.namespace3.table should be represented and resolved while preserving existing three-part names. Add coverage for nested namespaces and verify querying works as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, spark, sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.