skip to Main Content

PostgreSQL connection in Apache-Drill

I am trying to get Apache Drill to connect to a PostgreSQL database using the following configuration # storage-plugins-override.conf "postgresql": { "type": "jdbc", "driver": "org.postgresql.Driver", "url": "${POSTGRES_URL}", "username": "${POSTGRES_USER}", "password": "${POSTGRES_PASSWORD}", "enabled": true, "sourceParameters": { "minimumIdle": 0, "autoCommit": true, "connectionTestQuery":…

VIEW QUESTION

Apache Drill – Getting error on KVGEN method

I have a huge dataset where each record have json data similar to below - {"project":{"id":"2625","createDate":1542597000000,"rank":0,"highlight":false,"isDisplay":true,"isNewProject":true,"propertyId":2231,"districts":{"id":41,"name":"abc","region":"123"}}} When I am trying to genrate key value pairs using select kvgen(t.project) from dfs.filePath t in apache drill, I am getting below error -…

VIEW QUESTION
Back To Top
Search