Closed ThuF closed 2 months ago
Here is a fix for the stack overflow - https://github.com/eclipse/dirigible/pull/4156
Regarding "No table metadata found for table..."
A simple application with .table
and .csvim
works with Dirigible master and postgresql image postgres:16.1
Here is the project: dirigible-test-project-20240719100837.zip
used env variables:
export DIRIGIBLE_DATASOURCE_DEFAULT_DRIVER='org.postgresql.Driver'
export DIRIGIBLE_DATASOURCE_DEFAULT_URL='jdbc:postgresql://localhost:5432/postgres'
export DIRIGIBLE_DATASOURCE_DEFAULT_USERNAME='postgres'
export DIRIGIBLE_DATASOURCE_DEFAULT_PASSWORD='postgres'
Root cause: when you create table in uppercase in postgresql without escaping the table name it is created in lower case.
Example SQL:
CREATE TABLE READERS ( READER_ID INTEGER NOT NULL PRIMARY KEY , READER_FIRST_NAME VARCHAR (50) DEFAULT '' NOT NULL , READER_LAST_NAME VARCHAR (50) DEFAULT '' NOT NULL )
Table:
When the code tries to get the metadata using the upper case of the table name, it returns nothing.
You should set DIRIGIBLE_DATABASE_NAMES_CASE_SENSITIVE
to true
to fix this issue.
Dirigible sets this config to true
by default https://github.com/eclipse/dirigible/blob/master/build/application/src/main/resources/dirigible.properties#L22.
While the gaia doesn't set it at all. The code default value is false
. That's why my test with Dirigible works, but the gaia doesn't.
@ThuF you have either to set it in the deployment to true
or update the gaia default config.
@iliyan-velichkov thanks! Setting DIRIGIBLE_DATABASE_NAMES_CASE_SENSITIVE
to true
solved the issue.
I have the following setup:
Docker image with my application content (https://github.com/codbex/codbex-hestia)
Dockerfile
can be found herepackage.json
can be found hereEclipse Dirigible based platform (https://github.com/codbex/codbex-gaia 0.19.0)
The Docker image is deployed on AWS ECS and the DefaultDB is configured against AWS RDS (Postgres version 16.1) via the following environment variables:
In the AWS CloudWatch I can see the following logs:
CSVParser not created:
StackOverflowError: