-
Notifications
You must be signed in to change notification settings - Fork 213
feat: query client based on autogen package #1491
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
base: preview-9.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some meta questions
- we had talked about intelligently handing off to BQ storage read where appropriate. I know this is a proof of concept and it's early, but if this is still in scope, is there anything we can change with this implementation to make sure it's friendly to us making that change later?
- for the various converter utilities, are these duplicated in storage at all? if so, is there a way for us to not be duplicating them?
- the question for the skeptics: are all of the conveniences found here absolute must haves, or are there some things that are "would be nice"s that we can begin without?
/** | ||
* QueryClient is a client for running queries in BigQuery. | ||
*/ | ||
export class QueryClient { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting - why have an entirely new client rather than have this be part of the central client?
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will these utils only be useful for queries, or are they also useful with other clients?
/** | ||
* RowIterator iterates over the results of a query. | ||
*/ | ||
export class RowIterator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use the iterator without the reader, or is this only ever used in the context of the reader? If only ever coupled with the reader, my nit would be to have them in the same file
Updated the PR to use preview-9.x as base |
Draft on new query experience using the new bigquery/v2 client. Will break it down into smaller PR down the line, just testing the interface across languages to settle on a good interface.
Based on Go implementation googleapis/google-cloud-go#12512