drill icon indicating copy to clipboard operation
drill copied to clipboard

"trim": does not work correctly on Postgresql

Open ndn1991 opened this issue 2 years ago • 0 comments

Drill 1.21.1 Postgresql 14.6

DrillBit storage configuration:

{
  "type": "jdbc",
  "driver": "org.postgresql.Driver",
  "url": "jdbc:postgresql://<host>/<db_name>",
  "username": "<username>",
  "password": "<password>",
  "authMode": "SHARED_USER",
  "writerBatchSize": 10000,
  "enabled": true
}

Run this query SELECT TRIM( ' ') AS x FROM path_to_any_table Asume that the table has only one row. The actual result: x

null

The expected result x

x should be an empty string. The issue doesn't happen in Drill 1.19.0

ndn1991 avatar Sep 25 '23 04:09 ndn1991