Skip to content

Preview table without querying#64

Open
RobbeDeWaele wants to merge 2 commits intominodisk:mainfrom
RobbeDeWaele:preview-rows
Open

Preview table without querying#64
RobbeDeWaele wants to merge 2 commits intominodisk:mainfrom
RobbeDeWaele:preview-rows

Conversation

@RobbeDeWaele
Copy link

The current implementation of the preview functionality uses a query along the lines of SELECT * FROM <table> {LIMIT <num_of_rows>} to visualize (a subset of) the rows of a table. Querying the entire table can be pretty costly however and the LIMIT clause does not necessarily reduce the cost for non-clustered tables (see BigQuery API documentation).

This pull request uses the getRows() alternative which doesn't incur any costs. It supports the current functionality to specify the number of rows returned but removes the job information as that is no longer applicable

@sapiol63
Copy link

@minodisk, very interesting feature, please review it.

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.

2 participants