I need to get all the record from tableA greater than cdc_date which is stored in another tmp_table
tmp_table has only one column cdc_date and only one record.
tableA has more the 5 million records.
My Hive query
Select count(*) from tableA as a
where unix_timestamp((concat_ws('-',a.year,a.month,a.day,a.hour)),"yyyy-MM-dd-HH") >
(select b.cdc_date from tmp_table as b)
I am receiving below error
Unsupported SubQuery Expression 'cdc_date': Only SubQuery expressions that are top level conjuncts are allowed
Can anyone suggest how to active this.