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

Too many subqueries or query is too complex for "Job Concurrency Slow" #275

Open
charlibot opened this issue Jan 3, 2022 · 4 comments
Open
Labels
bug Something isn't working

Comments

@charlibot
Copy link

Hi, I've successfully copied over most of the data sources for BigQuery System Tables Reports but hit an issue with the "Job Concurrency Slow" datasource. When I swap the INFORMATION_SCHEMA_PUBLIC_V2 references for `region-{region_name}`.INFORMATION_SCHEMA and reconnect I see the error:

Resources exceeded during query execution: Not enough resources for query planning - too many subqueries or query is too complex.

Is this expected? Is there a simplified query I can use instead?

@NotSoCleverLogin
Copy link

I have the same issue with that query.

@torbjornvatn
Copy link

I got the same, but solved it by moving the job_info part out into a temp table like this:

CREATE TEMP TABLE job_info AS (  
  SELECT
    creation_time,
    end_time,
    project_id,
    reservation_id
  FROM
    `region-us`.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION
  WHERE
    job_id = @job_param
);  

WITH
   organization_capacity AS (....

But then I get this error instead
Screenshot 2022-04-05 at 10 57 26

@ipv1337
Copy link

ipv1337 commented May 7, 2022

I'm getting this error also!

Also tried the workaround above but got a different error, still not able to reconnect.

@vjfreestar
Copy link

vjfreestar commented May 7, 2022 via email

@afleisc afleisc added the bug Something isn't working label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants