Syntax to query druid with dataSketch datatype

Unable to get metric count having data type thetaSketch for druid data source. The same query is working on druid console with APPROX_COUNT_DISTINCT_DS_THETA function.

SELECT APPROX_COUNT_DISTINCT_DS_THETA(email_address)
FROM “test”
WHERE “__time” >= CURRENT_TIMESTAMP - INTERVAL ‘1’ DAY

Can someone help me here to understand what is wrong I am doing.