I am using petaho report desiner
My main query is
select create_date , sum(product_uos_qty) from sale_order_line group
by create_date
It is running properly
and sub query is
SELECT column_name
FROM information_schema.columns
WHERE table_schema='public'
AND table_name='sale_order_line'
AND (column_name = 'product_uos_qty' OR column_name ='price_unit')
output of this query is
product_uos_qty
price_unit
I create a parameter select
and convert main query into this
select create_date , sum(${select}) from sale_order_line group by create_date
but it is not running it gives following error
ERROR: The query 'main' did not execute successfully. The reason given was: 'org.pentaho.reporting.engine.classic.core.ReportDataFactoryException: Failed at query: select create_date , sum(${select}) from sale_order_line group by create_date'
tell me what is the main problem and how i can solve it