Skip to content

feat: Add support for Map type in SQL - #24397

Merged
jayzhan211 merged 2 commits into
apache:mainfrom
nuno-faria:map_sql_type
Aug 16, 2026
Merged

feat: Add support for Map type in SQL#24397
jayzhan211 merged 2 commits into
apache:mainfrom
nuno-faria:map_sql_type

Conversation

@nuno-faria

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Support the Map type directly in SQL, e.g., when creating tables.

What changes are included in this PR?

The sql-parser DataType::Map is now converted to the arrow type DataType::Map.

Are these changes tested?

Yes

Are there any user-facing changes?

New SQL type.

@github-actions github-actions Bot added sql SQL Planner sqllogictest SQL Logic Tests (.slt) labels Aug 15, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.18%. Comparing base (16b08db) to head (dc06353).

Files with missing lines Patch % Lines
datafusion/sql/src/planner.rs 71.42% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24397      +/-   ##
==========================================
- Coverage   81.18%   81.18%   -0.01%     
==========================================
  Files        1110     1110              
  Lines      388906   388913       +7     
  Branches   388906   388913       +7     
==========================================
- Hits       315741   315736       -5     
- Misses      54571    54576       +5     
- Partials    18594    18601       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jayzhan211
jayzhan211 added this pull request to the merge queue Aug 16, 2026
@jayzhan211

Copy link
Copy Markdown
Contributor

Thanks @nuno-faria and @Jefffrey

Merged via the queue into apache:main with commit 9fdf144 Aug 16, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Map type in SQL

4 participants