Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"trim": does not work correctly on Postgresql #2832

Open
ndn1991 opened this issue Sep 25, 2023 · 0 comments
Open

"trim": does not work correctly on Postgresql #2832

ndn1991 opened this issue Sep 25, 2023 · 0 comments
Labels

Comments

@ndn1991
Copy link

ndn1991 commented Sep 25, 2023

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 ndn1991 added the bug label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant