fsprojects-archive / zzarchive-FSharp.Data.HiveProvider

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

Wrong query when using boolean operators in the WHERE predicate #3

Closed victor-dumitrescu closed 10 years ago

victor-dumitrescu commented 10 years ago

Example:

hiveQuery {for row in context.sample_08 do
           where (row.salary < 20000 && row.salary > 40000)
           select row.description }

results in the following HiveQL query:

SELECT description FROM sample_08 WHERE salary < 20000 WHERE salary > 40000

which returns an error when executed.

Also, || is not handled by the TP, resulting in an error.