Added an integration test to validate behaviour of string scalars on top of aggregate functions. The behaviour was fixed with #49570. Relates to: #41597 (cherry picked from commit 35f964154850e3f02b6c7f9ca238da98ad83ebb3)
This commit is contained in:
parent
2b68aa3471
commit
327d268673
|
@ -435,6 +435,17 @@ null |5.1415926535
|
|||
null |4.1415926535
|
||||
;
|
||||
|
||||
aggregateWithStringScalars
|
||||
schema::gender:s|avg:s
|
||||
SELECT gender, REPLACE(CONVERT(AVG(salary), text), '.', ',') as "avg"
|
||||
FROM test_emp WHERE languages IS NOT NULL AND birth_date IS NOT NULL GROUP BY gender ORDER BY gender LIMIT 2;
|
||||
|
||||
gender | avg
|
||||
---------------+---------------
|
||||
null |48760,5
|
||||
F |51130,48
|
||||
;
|
||||
|
||||
//
|
||||
// Grouping functions
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue