Skip to content

docs: Document missing SQL data types - #24471

Open
nuno-faria wants to merge 1 commit into
apache:mainfrom
nuno-faria:doc_additional_types
Open

docs: Document missing SQL data types#24471
nuno-faria wants to merge 1 commit into
apache:mainfrom
nuno-faria:doc_additional_types

Conversation

@nuno-faria

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • N/A.

Rationale for this change

The data types page (https://datafusion.apache.org/user-guide/sql/data_types.html) is quite outdated, e.g., still claiming that ARRAY is not supported. This PR updates the missing types and also adds missing aliases.

This should only be merged after #24398.

What changes are included in this PR?

  • Add missing types, like ARRAY, STRUCT, and MAP, as well as alias for existing types.
  • Updated the sqlparser-rs link, which was pointing to the wrong line.

Are these changes tested?

Documentation only.

Are there any user-facing changes?

No.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 18, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.21%. Comparing base (19f2e85) to head (0e5f7bd).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24471      +/-   ##
==========================================
- Coverage   81.22%   81.21%   -0.01%     
==========================================
  Files        1113     1113              
  Lines      392250   392250              
  Branches   392250   392250              
==========================================
- Hits       318596   318583      -13     
- Misses      54910    54918       +8     
- Partials    18744    18749       +5     

☔ 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.

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nuno-faria -- I had some querstions about binary


By default, string types are mapped to `Utf8View`. This can be configured using the `datafusion.sql_parser.map_string_types_to_utf8view` setting. When set to `false`, string types are mapped to `Utf8` instead.

Note that `CHAR`, `VARCHAR`, `STRING`, `CHARACTER VARYING`, `CHAR VARYING`, and `NVARCHAR` can

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

| `BLOB` | `Binary` |
| `BINARY` | `Binary` |
| `VARBINARY` | `Binary` |
| `BYTES` | `Binary` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these really supported

I tried and I got a not supported error:

DataFusion CLI v55.0.0
> create table foo (x BLOB);
This feature is not implemented: Unsupported SQL type BLOB
> create table foo (x BINARY);
This feature is not implemented: Unsupported SQL type BINARY
> create table foo (x VARBINARY);
This feature is not implemented: Unsupported SQL type VARBINARY
> create table foo (x BYTES);
This feature is not implemented: Unsupported SQL type BYTES

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are being added here #24398, so we need to wait until that is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants