You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "jnturton (via GitHub)" <gi...@apache.org> on 2023/02/28 08:44:57 UTC

[PR] DRILL-8406: Enable implicit casting of VARCHAR and BIT args in aggregate functions (drill)

jnturton opened a new pull request, #2768:
URL: https://github.com/apache/drill/pull/2768

   # [DRILL-8406](https://issues.apache.org/jira/browse/DRILL-8406): Enable implicit casting of VARCHAR and BIT args in aggregate functions
   
   ## Description
   
   Default function implementations that that throw unsupported operation exceptions in the class AggregateErrorFunctions prevent the implicit casting of VARCHAR and BIT arguments to neighbouring types. E.g.
   ```
   apache drill> select sum('1');
   Error: UNSUPPORTED_OPERATION ERROR: Only COUNT, MIN and MAX aggregate functions supported for VarChar type
   ```
   This PR removes AggregateErrorFunctions so that implicit casting works, the example above changing as follows.
   ```
   apache drill> select sum('1');
   EXPR$0  1
   1 row selected (2.346 seconds)
   ```
   
   ## Documentation
   N/A
   
   ## Testing
   New unit test.
   


-- 
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: dev-unsubscribe@drill.apache.org

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


Re: [PR] DRILL-8406: Enable implicit casting of VARCHAR and BIT args in aggregate functions (drill)

Posted by "cgivre (via GitHub)" <gi...@apache.org>.
cgivre merged PR #2768:
URL: https://github.com/apache/drill/pull/2768


-- 
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: dev-unsubscribe@drill.apache.org

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