Open guyboertje opened 6 years ago
Alternative: In register or run (i.e. after a connection is viable), try the count query, rescue the error and bypass any max rows checks?
Seconding that. Plugin has generated the following query in my case:
SELECT count(*) AS "COUNT" FROM (SELECT categoryId, countryId, brandId, supplierId FROM UNNEST ((SELECT filters FROM migration_search.categories WHERE categoryid=207420))) AS "T1" LIMIT 1
And my driver does not support this syntax - therefore I get an error
Informix doesn't support this either. Some form of bypass would be greatly appreciated.
Bumping this too. I don't understand why the plugin need to count the number of record.
Any updates on this, I have an error too, with Teradata database because of the keyword LIMIT, issue: https://github.com/logstash-plugins/logstash-filter-jdbc_static/issues/62
@guyboertje could you confirm wheather the setting count_query has been added or not and if you can give an example on how to use it please, thanks in advance.
Add a new setting in the loader settings
count_query
to allow the user to supply a syntactically correct one. Although this allows the user to bypass any max_record checks I think it can be useful.