Original query:
SELECT CAST(cust_mart.acct_identifier AS STRING) as f0
FROM cts_work.cust_xref cust_mart
GROUP BY cust_mart.f0;
Can I replace the above query with below query :
SELECT DISTINCT CAST(cust_mart.acct_identifier AS STRING) as f0
FROM cts_work.cust_xref cust_mart;
Reason: there is no aggregation so group-by does not make sense, but still confirming my approach I am running this query on hive using TEZ engine