sql: resource_impala uses resource_sql
pyfunc: sanitize expression names

Thanks to @hhuuggoo for pointing this out