Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for reading Delta tables #176

Open
gdubya opened this issue Mar 5, 2024 · 5 comments
Open

Add support for reading Delta tables #176

gdubya opened this issue Mar 5, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@gdubya
Copy link

gdubya commented Mar 5, 2024

Describe your feature request

The Delta format is gaining popularity. The Polars project has recently added _read_delta methods for the Python and Rust APIs. It would be great if the node implementation could also support the Delta format.

I am not aware of any native Delta kernel implementation for Node, but perhaps a first version for nodejs-polars could use the Rust implementation behind-the-scenes?

@Bidek56
Copy link
Collaborator

Bidek56 commented Mar 5, 2024

@gdubya Delta tables are just versioned Parquet files. node-polars supports readParquet already.
Are there specific features of Delta that you need? Thx

@universalmind303
Copy link
Collaborator

universalmind303 commented Mar 7, 2024

@gdubya I do like the idea of adding delta support, and think it'd be a good fit for the project (especially considering py & rust have it). In the short term, you could use GlareDB (another arrow based system) to read delta, then convert to polars.

> npm install nodejs-polars
> npm install @glaredb/glaredb
const pl = require("nodejs-polars");
const glaredb = require("@glaredb/glaredb");
const con = await glaredb.connect();
const df = await (
	await con.sql(
		"select * from delta_scan('path/to/delta/table')",
	)
).toPolars();

console.log(df);

@eitsupi
Copy link

eitsupi commented Mar 19, 2024

The Polars project has recently added _read_delta methods for the Python and Rust APIs.

I think Rust don't have this feature.
Related issues: pola-rs/r-polars#221, pola-rs/polars-cli#14

@TheKnightCoder
Copy link

What is the update on this? Would also love this to use delta with nodejs

@Bidek56
Copy link
Collaborator

Bidek56 commented Apr 24, 2024

We had #190 but it was decided that it's too heavy and we shelved it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants