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/04/25 11:22:09 UTC

[GitHub] [arrow-datafusion] gandronchik commented on issue #2083: Error occurs when using union in query

gandronchik commented on issue #2083:
URL: https://github.com/apache/arrow-datafusion/issues/2083#issuecomment-1108443457

   It doesn't work in the current version.
   `select 1 union select 2;`
   ArrowError(ExternalError(Execution("Arrow error: External error: Internal error: Unsupported data type in hasher: Null. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker")))
   
   `SELECT 1 a UNION ALL SELECT 2;`
   ```
   +-------------+
   | placeholder |
   +-------------+
   |             |
   | 1           |
   +-------------+
   ```
   
   I fixed it. Now result is:
   `select 1 union select 2;`
   ```
   +----------+
   | Int64(1) |
   +----------+
   | 2        |
   | 1        |
   +----------+
   ```
   
   `SELECT 1 a UNION ALL SELECT 2;`
   ```
   +---+
   | a |
   +---+
   | 1 |
   | 2 |
   +---+
   ```
   


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