You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/21 11:30:19 UTC

[GitHub] [arrow-datafusion] gruuya opened a new issue, #4303: DESCRIBE statement issue with qualified table references

gruuya opened a new issue, #4303:
URL: https://github.com/apache/arrow-datafusion/issues/4303

   **Describe the bug**
   `DESCRIBE` statement doesn't work for partial or fully qualified table references.
   
   **To Reproduce**
   ```sql
   ❯ CREATE SCHEMA my_schema;
   0 rows in set. Query took 0.000 seconds.
   ❯ CREATE TABLE my_schema.my_table AS VALUES (1, 2), (3, 4);
   +---------+---------+
   | column1 | column2 |
   +---------+---------+
   | 1       | 2       |
   | 3       | 4       |
   +---------+---------+
   2 rows in set. Query took 0.000 seconds.
   ❯ SELECT column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name = 'my_table' AND table_schema = 'my_schema';
   +-------------+-----------+-------------+
   | column_name | data_type | is_nullable |
   +-------------+-----------+-------------+
   | column1     | Int64     | YES         |
   | column2     | Int64     | YES         |
   +-------------+-----------+-------------+
   2 rows in set. Query took 0.007 seconds.
   ❯ DESCRIBE my_schema.my_table;
   0 rows in set. Query took 0.021 seconds.
   ```
   
   **Expected behavior**
   Instead of showing no rows, the `DESCRIBE` command should match the output from the `information_schema.columns` above.
   
   **Additional context**


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb closed issue #4303: DESCRIBE statement issue with qualified table references

Posted by GitBox <gi...@apache.org>.
alamb closed issue #4303: DESCRIBE statement issue with qualified table references
URL: https://github.com/apache/arrow-datafusion/issues/4303


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org