Skip to content

Conversation

@fdelbrayelle
Copy link
Contributor

@fdelbrayelle fdelbrayelle commented Jan 21, 2026

closes https://github.com/kestra-io/kestra-ee/issues/6474

What changes are being made and why?


How the changes have been QAed?

Query

Flow:

id: create_table_postgres
namespace: company.team

tasks:
  - id: create_table
    type: io.kestra.plugin.jdbc.postgresql.Query
    url: "jdbc:postgresql://localhost:56982/postgres"
    username: "postgres"
    password: "pg_passwd"
    sql: |
      CREATE TABLE IF NOT EXISTS public.my_fancy_table (
        id          BIGSERIAL PRIMARY KEY,
        name        TEXT NOT NULL,
        created_at  TIMESTAMPTZ NOT NULL DEFAULT now()
      );
    assets:
      enableAuto: true

Results:

image

Asset created in Kestra PG DB:

select * from assets;

Results:

[
  {
    "key": "fde_postgres.my_fancy_table",
    "value": {"id": "postgres.my_fancy_table", "name": "my_fancy_table", "type": "io.kestra.plugin.ee.assets.Table", "system": "PostgreSQL", "created": "2026-01-23T11:31:01.451882Z", "deleted": false, "updated": "2026-01-23T11:31:01.558707Z", "database": "postgres", "metadata": {"name": "my_fancy_table", "system": "PostgreSQL", "database": "postgres"}, "tenantId": "fde"},
    "tenant_id": "fde",
    "namespace": null,
    "id": "postgres.my_fancy_table",
    "type": "io.kestra.plugin.ee.assets.Table",
    "display_name": null,
    "created": "2026-01-23 11:31:01.451882 +00:00",
    "updated": "2026-01-23 11:31:01.558707 +00:00",
    "deleted": false,
    "fulltext": null
  }
]

In the Assets page:

image image

Queries

Flow with multiples queries:

id: postgres_queries
namespace: company.team

tasks:
  - id: init_products
    type: io.kestra.plugin.jdbc.postgresql.Queries
    url: "jdbc:postgresql://localhost:56982/postgres"
    username: "postgres"
    password: "pg_passwd"
    sql: |
      CREATE TABLE IF NOT EXISTS products(
        product_id SERIAL PRIMARY KEY,
        product_name varchar(100),
        product_category varchar(50),
        brand varchar(50)
      );
      INSERT INTO products VALUES(1, 'streamline turn-key systems','Electronics','gomez') ON CONFLICT (product_id) DO NOTHING;
      INSERT INTO products VALUES(2, 'morph viral applications','Household','wolfe') ON CONFLICT (product_id) DO NOTHING;
      INSERT INTO products VALUES(3, 'expedite front-end schemas','Household','davis-martinez') ON CONFLICT (product_id) DO NOTHING;
      INSERT INTO products VALUES(4, 'syndicate robust ROI','Outdoor','ruiz-price') ON CONFLICT (product_id) DO NOTHING;
    fetchType: NONE
    assets:
      enableAuto: true

Results:

image

Asset added:

image image

Setup Instructions


Contributor Checklist ✅

@github-actions
Copy link
Contributor

github-actions bot commented Jan 21, 2026

🧪 Java Unit Tests

TestsPassed ✅Skipped ⚠️FailedTime ⏱
Java Tests Report280 ran231 ✅49 ⚠️0 ❌7m 21s 149ms

📦 Artifacts

Name Size Updated Expiration
jar 363.38 MB Jan 23, 26, 2:51:57 PM UTC Jan 30, 26, 2:51:43 PM UTC

🛡 Trivy

Vulnerability in: Java

Vulnerability Severity Package Installed Version Fixed Version
CVE-2025-48734 HIGH commons-beanutils:commons-beanutils 1.10.0 1.11.0
CVE-2025-48924 MEDIUM commons-lang:commons-lang 2.4
CVE-2025-58057 MEDIUM io.netty:netty-codec 4.1.119.Final 4.1.125.Final
CVE-2025-67735 MEDIUM io.netty:netty-codec-http 4.1.119.Final 4.2.8.Final, 4.1.129.Final
CVE-2025-58056 LOW io.netty:netty-codec-http 4.1.119.Final 4.1.125.Final, 4.2.5.Final
CVE-2025-67735 MEDIUM io.netty:netty-codec-http 4.2.5.Final 4.2.8.Final, 4.1.129.Final
CVE-2025-67735 MEDIUM io.netty:netty-codec-http 4.2.5.Final 4.2.8.Final, 4.1.129.Final
CVE-2025-55163 HIGH io.netty:netty-codec-http2 4.1.119.Final 4.2.4.Final, 4.1.124.Final
CVE-2024-57699 HIGH net.minidev:json-smart 2.5.0 2.5.2
CVE-2025-68161 MEDIUM org.apache.logging.log4j:log4j-core 2.24.3 2.25.3
CVE-2025-58457 MEDIUM org.apache.zookeeper:zookeeper 3.9.3 3.9.4
CVE-2025-12383 CRITICAL org.glassfish.jersey.core:jersey-client 2.45 2.46, 3.0.17, 3.1.10

🔁 Unreleased Commits

1 commits since v1.5.1

SHA Title Author Date
d41689d chore: change labels on issue template Ludovic DEHON Jan 22, 26, 7:03:43 PM UTC

@Malaydewangan09
Copy link
Member

Seems the CI is failing.

@fdelbrayelle fdelbrayelle force-pushed the issues/6474 branch 3 times, most recently from 477a1e6 to 2af05a0 Compare January 23, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To review

Development

Successfully merging this pull request may close these issues.

2 participants