I created an incremental Dataform code that when I run as not incremental, it runs so smooth and perfect but when I run it as incremental, I get errors.
Please see code below and what could be the cause of the error
whenever I run as incremental, I get the error below, I expected incremental runs to use lesser computation, so why am I having this error?
reason:"invalidQuery" location:"query" message:"Resources exceeded during query execution: The query could not be executed in the allotted memory. Peak usage: 160% of limit.\nTop memory consumer(s):\n JOIN operations: 100%\n. at [cfc-2017-site-login.dataform_production.ga_adobe_combined_procedure:4:15]": invalid argument
Please help @ms4446
Solved! Go to Solution.
Hi @francisatoyebi ,
The error you are getting indicates that the query is using too much memory and is being rejected by BigQuery. This could be due to several reasons:
UNION ALL
are producing large result sets.To reduce the memory usage of your query, you can try the following:
In your specific code, there is no join operation, so suggestions related to join conditions are not applicable. Also, replacing the sum()
function with the count()
function would likely produce incorrect results, so that suggestion may not be appropriate for this query.
The error message is pointing to a memory issue, so careful analysis and optimization of the query will be needed to resolve it.
Hi @francisatoyebi ,
The error you are getting indicates that the query is using too much memory and is being rejected by BigQuery. This could be due to several reasons:
UNION ALL
are producing large result sets.To reduce the memory usage of your query, you can try the following:
In your specific code, there is no join operation, so suggestions related to join conditions are not applicable. Also, replacing the sum()
function with the count()
function would likely produce incorrect results, so that suggestion may not be appropriate for this query.
The error message is pointing to a memory issue, so careful analysis and optimization of the query will be needed to resolve it.