Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

HANA flowgraph. Mapping of variables to outputs.

$
0
0

hi all,

 

could you please advise on the use of variables in HANA flowgraphs?

 

I am trying to create a flowgraph, which:

 

1) gets a variable value when triggered

2) uses this variable for filtering inside of the flowgraph

3) writes the value of the variable to each row of certain column of flowgraph output.

 

For the point #3 I've tried to use 'filter node'. In this element on the page 'mapping' I've

- added a new column to output "variable_output_column"

- for this column set the following mapping string: $$name_of_flowgraph_variable$$

 

With this I've expected to get value of variable "name_of_flowgraph_variable" (for the test I've put the value= "VARIABLE_VALUE") in each row of "variable_output_column". Instead, I am getting the following error message:

(dberror) 2048 - column store error: task framework: [260] invalid column name: VARIABLE_VALUE: line 1 col 167 (at pos 167) (please check lines: )

 

It looks like the mapping uses the value of variable to find a column in the 'filter node' input with a name corresponding to the value of the variable.

 

Of course, it looks like a bug, because

a) if I put mapping string equal to static string 'VARIABLE_VALUE' (instead of $$name_of_flowgraph_variable$$), then the output column gets rows with value VARIABLE_VALUE

b) it's pretty hard to imagine that mapping should find an input column name dynamically basing on the input.

 

So, this option doesn't look properly working. Could you please advise any alternative for the task? maybe another type of node can be helpful?

 

Thanks and best regards,

Andriy.


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>