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

New GetResult Arguments (filter, sort, sample, columns) #40

Merged
merged 6 commits into from
Mar 27, 2024
Merged

Conversation

bh2smith
Copy link
Collaborator

@bh2smith bh2smith commented Mar 26, 2024

Mimicking changes made here in the python client to add support for the following "new" getResults arguments:

  • filter out some rows before retrieve the results
  • specify the output columns
  • get a sample of the results
  • sort the results

Comment on lines +127 to +136
// Columns:
// TODO - reinsert this when the bug is fixed!
// results = await client.getExecutionResults(paramQueryExecution.execution_id, {
// columns: "text_field",
// });

// expect(results.result?.rows).to.be.deep.equal(
// [{ text_field: "Plain Text", list_field: "Option 1" }],
// `getResults with number,letter columns failed! with ${JSON.stringify(results.result?.rows)}`,
// );
Copy link
Collaborator Author

@bh2smith bh2smith Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a bug here so we couldn't test it. Possibly something about the underscore in the column name.

cf #42

@bh2smith bh2smith merged commit 77c042f into main Mar 27, 2024
3 checks passed
@bh2smith bh2smith deleted the result-args branch March 27, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant