gbif / occurrence

Occurrence store, download, search
Apache License 2.0
22 stars 15 forks source link

SQL queries: `'year'` is accepted for comparisons, but fails in Hive #343

Closed MattBlissett closed 7 months ago

MattBlissett commented 8 months ago

'year' is a constant string in SQL. The parser accepts an expression like 'year' >= 1100, but Hive rejects it as a string/integer comparison.

(year is the date function, "year" must be used.)