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

Allow bytes and string for JSON/CSV input data with format option #2763

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

texodus
Copy link
Member

@texodus texodus commented Sep 23, 2024

This PR extends Python and JavaScript APIs to allow String/str/bytes/ArrayBuffer/UInt8Array input data types for JSON Rows/Columns and CSV data, using the new format keyword argument to Client::table. This is useful several interesting performance optimizations, such as:

Use it like this:

data = '{"x": [1,2,3], "y": [4,5,6]}';
table = await client.table(data, {format: "columns"});

Included are tests and keyword argument docs for both Python and JavaScript.

@texodus texodus added the enhancement Feature requests or improvements label Sep 23, 2024
@texodus texodus merged commit ea5cab9 into master Sep 23, 2024
4 of 5 checks passed
@texodus texodus deleted the flexible-table branch September 23, 2024 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reading a csv file as arrayBuffer instead of text in browser
1 participant