-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In the doc, we can know the datatypes supported in the datafusion.
In other system, such as PG database and spark, the systems just support signed numeric datatypes.
But in the datafusion, we can create a table with unsigned numeric, this is not compatible with the doc and other system.
In the code, we also consider the case of unsigned numeric datatypes.
To Reproduce
❯ create table test as select count(1);
0 rows in set. Query took 0.004 seconds.
❯ \d test
+---------------+--------------+------------+-----------------+-----------+-------------+
| table_catalog | table_schema | table_name | column_name | data_type | is_nullable |
+---------------+--------------+------------+-----------------+-----------+-------------+
| datafusion | public | test | COUNT(UInt8(1)) | UInt64 | YES |
+---------------+--------------+------------+-----------------+-----------+-------------+
1 row in set. Query took 0.008 seconds.
❯
From example, we can can see that the datatype is UINT64.
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working