Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug when join ... on (condition 1 or condition2) #113

Open
lzbht opened this issue Dec 9, 2024 · 0 comments
Open

A bug when join ... on (condition 1 or condition2) #113

lzbht opened this issue Dec 9, 2024 · 0 comments

Comments

@lzbht
Copy link

lzbht commented Dec 9, 2024

when execute

SELECT 
    r2.business_unit, 
    SUM(r1.total_cost) AS total_cost
FROM 
   project_cost_split_data r1
JOIN 
   cloud_account r2 
ON 
    (r1.account = r2.name OR r1.manager = r2.name)
WHERE 
    r1.record_month LIKE '2024-%'
GROUP BY 
    r2.business_unit;

It will report error:

ERROR: clickhouse_fdw:Code: 170. DB::Exception: Bad get: has Bool, requested UInt64. (BAD_GET)
QUERY:SELECT r2.business_unit, r1.total_cost FROM observe.project_cost_split_data r1 ALL INNER JOIN observe.cloud_account r2 ON (TRUE) WHERE (((r1.account = r2.name) OR (r1.manager = r2.name))) AND ((r1.record_month LIKE '2024-%'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant