When running a query, which is referencing an Impala native function, regexp_replace, we are seeing inconsistent results.
The following example Teiid query returns 0 records:
Looking at the Impala generated query, it is not passing the arguments to the function correctly. The resulting (incorrect and unexpected) Impala query for the above Teiid query is:
Oddly, while experimenting, if we add the LIMIT clause to the Teiid query the argument pushdown result is correct!
The following example Teiid query returns records:
Here is the resulting (correct and expected) Impala query for the above example Teiid query with LIMIT clause: