rusackas commented on PR #27073:
URL: https://github.com/apache/superset/pull/27073#issuecomment-1972148074
@Zakyrel it's an unusual, but valid use case. We'd probably be open to a
proposal/PR for such a fix.
In the meantime, I wonder if you can do a workaround by adjusting the query
to spit out a row of NULLs when there's no REAL data. Something like:
```
SELECT company.taxnumber, company.name, company.status,
company.termination_date
FROM company
WHERE company.status = 'In activity'
AND company.termination_date IS NOT NULL
UNION ALL
SELECT NULL as taxnumber, NULL as name, NULL as status, NULL as
termination_date
WHERE NOT EXISTS (
SELECT 1
FROM company
WHERE company.status = 'In activity'
AND company.termination_date IS NOT NULL
);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]