Jimexist opened a new issue #1271:
URL: https://github.com/apache/arrow-datafusion/issues/1271


   **Describe the bug**
   
   for a table created with create table as values lists, the resulting 
information schema show invalid `character_octat_length` info
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   ```
   ❯ create table users as values ('a', 'b');
   0 rows in set. Query took 0.002 seconds.
   ❯ \d
   +---------------+--------------------+------------+------------+
   | table_catalog | table_schema       | table_name | table_type |
   +---------------+--------------------+------------+------------+
   | datafusion    | public             | users      | BASE TABLE |
   | datafusion    | information_schema | tables     | VIEW       |
   | datafusion    | information_schema | columns    | VIEW       |
   +---------------+--------------------+------------+------------+
   3 rows in set. Query took 0.005 seconds.
   ❯ select * from information_schema.columns;
   
+---------------+--------------+------------+-------------+------------------+----------------+-------------+-----------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+
   | table_catalog | table_schema | table_name | column_name | ordinal_position 
| column_default | is_nullable | data_type | character_maximum_length | 
character_octet_length | numeric_precision | numeric_precision_radix | 
numeric_scale | datetime_precision | interval_type |
   
+---------------+--------------+------------+-------------+------------------+----------------+-------------+-----------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+
   | datafusion    | public       | users      | column1     | 0                
|                | YES         | Utf8      |                          | 
2147483647             |                   |                         |          
     |                    |               |
   | datafusion    | public       | users      | column2     | 1                
|                | YES         | Utf8      |                          | 
2147483647             |                   |                         |          
     |                    |               |
   
+---------------+--------------+------------+-------------+------------------+----------------+-------------+-----------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+
   2 rows in set. Query took 0.005 seconds.
   ```
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to