You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm issuing the following query to BigDAWG and it's not returning the appropriate response.
SELECT
program_id as program_id,
label as label,
ipw as is_provone_Workflow,
phssubp as provone_hasSubProgram
FROM
(
(
SELECTa.idas program_id
FROM
actor as a
)
) as t1
INNER JOIN (
(
SELECTe.idas joinId,
COALESCE(w.name, e.name) as label,CASE
WHEN w.idIS NOT NULL THEN TRUE
ELSE FALSE
END as ipw,CASE
WHEN w.idIS NOT NULL THEN NULL
ELSE e.wf_id
END as phssubp
FROM
entity as e
LEFT JOIN workflow as w ONw.id=e.id
)
) as t2 ON program_id = joinId
Given the left join issue, it was expected from this query to return the following result:
psql -d postgresql://postgres@localhost:5401/kepler -c \
"SELECT program_id as program_id, label as label, ipw as is_provone_Workflow, phssubp as provone_hasSubProgram FROM (( SELECT a.id as program_id FROM actor as a) ) as t1 INNER JOIN (( SELECT e.id as joinId, COALESCE(w.name, e.name) as label,CASE WHEN w.id IS NOT NULL THEN TRUE ELSE FALSE END as ipw,CASE WHEN w.id IS NOT NULL THEN NULL ELSE e.wf_id END as phssubp FROM entity as e INNER JOIN workflow as w ON w.id = e.id) ) as t2 ON program_id = joinId"
program_id | label | is_provone_workflow | provone_hassubprogram
------------+---------------+---------------------+-----------------------
1 | 04-HelloWorld | t |
However, BigDAWG returns an empty set:
curl -X POST -d \
"bdrel(SELECT program_id as program_id,label as label,ipw as is_provone_Workflow,phssubp as provone_hasSubProgram FROM (( SELECT a.id as program_id FROM actor as a )) as t1 INNER JOIN (( SELECT e.id as joinId,COALESCE(w.name, e.name) as label,CASE WHEN w.id IS NOT NULL THEN TRUE ELSE FALSE END as ipw,CASE WHEN w.id IS NOT NULL THEN NULL ELSE e.wf_id END as phssubp FROM entity as e LEFT JOIN workflow as w ON w.id = e.id )) as t2 ON program_id = joinId)" http://localhost:8080/bigdawg/query
curl -X POST http://localhost:8080/bigdawg/query -d "bdrel(select * from ( ( SELECT af.id as execution_id,actor_id as prov_hadPlan FROM actor_fire as af ) UNION ALL ( SELECT NULL as execution_id,wfe.wf_id as prov_hadPlan FROM workflow_exec as wfe ) ) as table_3)"
net.sf.jsqlparser.statement.select.SetOperationList cannot be cast to net.sf.jsqlparser.statement.select.PlainSelect
EDIT 2:
Also, BigDAWG doesn't allow filtering and projecting properties over subselects, e.g.:
Also, BigDAWG doesn't output results with the defined aliases, instead, it outputs the original dimension name.
curl -X POST http://localhost:8080/bigdawg/query -d "bdrel(select execution_id from ( SELECT pe.fire_id as execution_id,pe.port_id as provone_hadInPort,data as data FROM port_event as pe WHERE pe.write_event_id = -1 ) as table_6 where execution_id='1')"
fire_id
1
The text was updated successfully, but these errors were encountered:
I'm issuing the following query to BigDAWG and it's not returning the appropriate response.
Given the left join issue, it was expected from this query to return the following result:
However, BigDAWG returns an empty set:
curl -X POST -d \ "bdrel(SELECT program_id as program_id,label as label,ipw as is_provone_Workflow,phssubp as provone_hasSubProgram FROM (( SELECT a.id as program_id FROM actor as a )) as t1 INNER JOIN (( SELECT e.id as joinId,COALESCE(w.name, e.name) as label,CASE WHEN w.id IS NOT NULL THEN TRUE ELSE FALSE END as ipw,CASE WHEN w.id IS NOT NULL THEN NULL ELSE e.wf_id END as phssubp FROM entity as e LEFT JOIN workflow as w ON w.id = e.id )) as t2 ON program_id = joinId)" http://localhost:8080/bigdawg/query
EDIT:
If you need a reproducible environment, just follow the installation steps here
The following query just spit out a plain error:
net.sf.jsqlparser.statement.select.SetOperationList cannot be cast to net.sf.jsqlparser.statement.select.PlainSelect
EDIT 2:
Also, BigDAWG doesn't allow filtering and projecting properties over subselects, e.g.:Also, BigDAWG doesn't output results with the defined aliases, instead, it outputs the original dimension name.
The text was updated successfully, but these errors were encountered: