Forum Discussion
Teradata import Error - No More Spool Space
- 4 years ago
Hi Anonymous ,
This may help you:
It turns out this is just another example of what I blogged about here: Power BI wants to know the schema of the table before the query actually runs, so it asks Power Query to return the top 0 rows. Unfortunately, in this case query folding can’t take place and the top 0 filter can’t be pushed back to the database, so the entire query gets run once to get the schema and once to get the data.
The solution is the same as the blog post I just mentioned too: use the Table.View M function to hard-code the schema returned by the query and implement query folding manually. Here’s the adapted version of the new query:
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous , refer if the option , can help
MODIFY [PROFILE profile_name | USER user_name ] AS SPOOL = 100000000 bytes ;
https://stackoverflow.com/questions/12479691/no-more-spool-space-in-database
- Anonymous4 years agoNot applicable
Thanks, amitchandak. I've tried this and I don't have rights to modify user spool in Teradata. My spool space is almost 812,000,000,000.
Do you know if trying to run the query through PowerBI somehow limits my spool space? My query runs just fine in the Teradata application with no spool space errors, it only occurs when trying to pull from PowerBI.- Icey4 years ago
Community Support
Hi Anonymous ,
This may help you:
It turns out this is just another example of what I blogged about here: Power BI wants to know the schema of the table before the query actually runs, so it asks Power Query to return the top 0 rows. Unfortunately, in this case query folding can’t take place and the top 0 filter can’t be pushed back to the database, so the entire query gets run once to get the schema and once to get the data.
The solution is the same as the blog post I just mentioned too: use the Table.View M function to hard-code the schema returned by the query and implement query folding manually. Here’s the adapted version of the new query:
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.