fsprojects-archive / zzarchive-FSharp.Data.HiveProvider

[ARCHIVED] F# Type Provider for Hadoop Hive
Other
9 stars 11 forks source link

Selecting multiple columns in a hiveQuery generates wrong HiveQL query #2

Closed victor-dumitrescu closed 10 years ago

victor-dumitrescu commented 10 years ago

Example: The following query

let query6 = hiveQuery {for line in context.sample_08 do
                        where (line.total_emp ?< 500)
                        select (line.description, line.total_emp)
                        distinct}

result in this HiveQL query being sent:

SELECT DISTINCT(description,total_emp) FROM sample_08 WHERE total_emp < 500

but it should be

Hive Query 'SELECT DISTINCT (description), (total_emp) FROM sample_08 WHERE total_emp < 500