Common utilities from duckdb jdbc and sql transformation