Hi there,
you're mixing things up here.
Intra-query parallelism is not influenced by the SQLScript features used. It refers to the operations performed for one single SQL command (scanning, filtering, projecting, joining, etc.). There is no direct way for you to control that. SAP HANA will always try to execute the statements as fast as possible.
However, the inter-query parallelism is heavily influenced by what commands you use and the dependencies between the queries in your script.
In your example itab_all_bp depends on temp3 which in turn depends on temp1 and temp2.
So the execution graph would allow temp1 and temp2 to be executed in parallel, the result set will be fed into temp3 (maybe this could be transformed into a outer query and sub-selects internally, but to be sure you need to use planviz here).
Finally itab_all_hp takes the result set from temp3 and works on that.
So, yes, you do get parallelism here.
- Lars