datafusion-contrib / datafusion-contrib/datafusion-postgres

Add support for PREPARE and EXECUTE statement for simple query

Open
#292 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
160
Forks
44
Avg merge
1d 4h
Merged PRs (30d)
14

Description

Postgres has a text form of parse-bind-execute query like:

-- parse the statement
PREPARE myplan(type) AS SELECT $1;

-- create portal and execute the statement
EXECUTE myplan(1);

-- remove the statement
DEALLOCATE myplan;

This will allow us to debug extended query, statement binding easier with psql client.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the simple-query handling and comparing it with the existing extended-query statement binding path. Use the PREPARE, EXECUTE, and DEALLOCATE sequence from the issue with psql; done means those statements work for the shown parameterized query and make extended-query debugging possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, rust
Domain
backend-api-design, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.