SQL: [Test] Add test for a fixed bug for string scalars on aggs (#55304) (#55309)

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:
Marios Trivyzas 2020-04-16 16:41:54 +02:00 committed by GitHub
parent 2b68aa3471
commit 327d268673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -435,6 +435,17 @@ null |5.1415926535
null |4.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 // Grouping functions
// //