graph - Recursive self-join in HANA SQLSCRIPT procedure -


according academical literature http://pi3.informatik.uni-mannheim.de/~norman/hana_sqlscript_btw2013.pdf

hana support recursive calls on hierarchical tree following:

create procedure browse_set_top_bt (in depth integer, in currdepth integer, in current tt_from_to,  out hull tt_from_to) language sqlscript reads sql data begin  relevant = select frm , customerconnections weight >=   2; temp   = select c.frm , r.to  :current c, :relevant r c.to = r.frm ; currdepth = currdepth + 1; if( currdepth < depth ) call browse_set_top_bt ( depth, currdepth, temp, temp2 ) hull = :temp union :temp2; else hull = :temp; end; end; 

any further support in eventual manner browse parent-child tree in recursive self-join way welcome.

sorry, mistook academic test implementation of query processing feature part of delivered standard product functionality.

sap hana not support recursive queries described in paper.

what support graph-oriented queries (maybe suitable use case here) , hierarchical queries. recommend checking actual product documentation details on both!


Comments

Popular posts from this blog

Add new key value to json node in java -

javascript - Highcharts Synchronized charts with missing data points -

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -