Maximum recursion depth of 1000 has been reached


#1

I got the below error when trying to compile a csdl using stream tag like the one in this example http://dev.datasift.com/docs/advanced/stream-keyword (using Python API Client):

CompileFailedError: An error occurred: “maximum recursion depth of 1000 has been reached”.

There are about 1,600 streams inside the “return” statement.


#2

This 'maximum recursion depth' error is raised because you are using more than 1000 'OR' operators in your CSDL.

If you split this into two separate streams (800 streams per master stream), this will resolve the problem.