GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] Postgres Protocol Plugin does not return schema for empty query results · Issue #3971 · ArcadeData/arcadedb

[BUG] Postgres Protocol Plugin does not return schema for empty query results #3971

New issue
Copy link
New issue
Copy link
Closed
Feature
#4118
Closed
[BUG] Postgres Protocol Plugin does not return schema for empty query results#3971
Feature
#4118
Copy link
Assignees
robfrank
Labels
enhancementNew feature or request
Milestone
26.5.1

Description

@kubamg
kubamg
opened on Apr 23, 2026
Issue body actions

Hi,
I have been trying to connect to locally deployed arcade db with pyspark using postgres JDBC driver and faced an interesting problem. While executing simple queries (e.g. SELECT id FROM table on a non-empty table with valid column id), I would get empty results. However, when checking the count of the dataframe loaded by pyspark, it returns a correct number of rows in the table. Showing the dataframe content displays N empty rows.

I have researched this for a while, and figured out that spark queries the database by adding WHERE 1=0 to the query to retrieve data schema. On regular postgres database, this does not return any rows, but the schema is returned. For example:

Image

In arcade db, nothing is returned:

Image

Activity

  1. robfrank commented on Apr 23, 2026

    @robfrank
    robfrank
    on Apr 23, 2026
    Collaborator
    More actions

    I faced this problem in the past (like 10 years ago), same old story: To obtain the schema spark/pyspark perform a first query and caches the schema.

    We can work on compatibility with spark/pyspark.
    I take this issue.

    Reacted by Luca Garulli
  2. robfrank
    self-assigned this
    on Apr 23, 2026
  3. robfrank
    added this to the 26.5.1 milestone on Apr 23, 2026
  4. robfrank
    added
    enhancementNew feature or request
    on Apr 23, 2026
  5. robfrank
    added the
    Feature
    issue type on Apr 23, 2026
  6. mergify
    added a commit that references this issue on May 3, 2026

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    03c204f
  7. robfrank
    closed this as completedin #4118on May 6, 2026
  8. robfrank
    added a commit that references this issue on May 6, 2026

    #3971 fix(postgres): return RowDescription with schema columns for em…

    39bf4db
  9. tae898
    added a commit that references this issue on May 10, 2026

    ArcadeData#3971 fix(postgres): return RowDescription with schema colu…

    aa3fb45
  10. robfrank
    added a commit that references this issue on May 12, 2026

    #3971 fix(postgres): return RowDescription with schema columns for em…

    4565047
  11. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    8a485d0

    ArcadeData#3971 fix(postgres): return RowDescription with schema colu…

    41bafaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @robfrank
    robfrank

Labels

enhancementNew feature or request

Type

Feature

Projects

No projects

    Milestone

    • 26.5.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.