docs: Document missing SQL data types - #24471
Open
nuno-faria wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
alamb
reviewed
Aug 19, 2026
alamb
left a comment
Contributor
There was a problem hiding this comment.
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 |
| | `BLOB` | `Binary` | | ||
| | `BINARY` | `Binary` | | ||
| | `VARBINARY` | `Binary` | | ||
| | `BYTES` | `Binary` | |
Contributor
There was a problem hiding this comment.
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
Contributor
Author
There was a problem hiding this comment.
They are being added here #24398, so we need to wait until that is merged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
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
ARRAYis 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?
ARRAY,STRUCT, andMAP, as well as alias for existing types.Are these changes tested?
Documentation only.
Are there any user-facing changes?
No.