Skip to content

feat(BigQuery): Add support for Stateless Queries#8943

Draft
Hectorhammett wants to merge 5 commits intomainfrom
statelessquery-prototype
Draft

feat(BigQuery): Add support for Stateless Queries#8943
Hectorhammett wants to merge 5 commits intomainfrom
statelessquery-prototype

Conversation

@Hectorhammett
Copy link
Collaborator

No description provided.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the BigQuery API. label Feb 23, 2026
@Hectorhammett Hectorhammett force-pushed the statelessquery-prototype branch from dd440a2 to 5ef86ea Compare February 26, 2026 18:16
Comment on lines +37 to +38
use function PHPUnit\Framework\isNull;

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this was accidental

Suggested change
use function PHPUnit\Framework\isNull;

*
* @return array<mixed>|null
*/
public static function getQueryRequest(JobConfigurationInterface $jobConfiguration): array|null
Copy link
Contributor

Choose a reason for hiding this comment

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

The fact that this returns an array when the object itself implements a toArray() method seems wrong. I would expect it to be something more like this:

if ($query->isStateless()) {
    $stateless = StatelessJobConfiguration::fromQueryConfiguration($query);
    $request = $stateless->toArray();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants