Intersect ThetaSketches from two data sources

Hello All,

Could someone advise how to intersect/union theta sketches from two different data sources?

The single data source operation below works well for me. But I couldn’t get it work on two tables.

Does the Java API supports getting these sketch data structures directly from Druid?