there are some tables in hive, with the same pattern like this: product_info_{xxx}_manual
I want to get min and max datetime of these tables, now I use sql like below
select 'foo', min(dt), max(dt) from product_info_foo_manual
union
select 'bar', min(dt), max(dt) from product_info_bar_manual
union
select 'foobar', min(dt), max(dt) from product_info_foobar_manual
...
Does hive support wildcard could implement above requirement more easyly, e.g
select substring(table_name, x,y),min(dt), max(dt) from product_info_*_manual