Member since
11-24-2016
5
Posts
0
Kudos Received
0
Solutions
12-11-2016
10:46 PM
I guess this is a limitation of HIVE it can select only a single column for IN subqueries. An Alternative to this can be: where rel.i_prtitn in (select * from my_prtitn) and rel.i_mod_yr in (select * from my_prtitn) and rtrim(substr(rel.c_lu_1,3,2)) > ' '; But it won't be an optimized solution. Please reply if you think otherwise.
... View more
12-08-2016
04:25 AM
Hi Eric, The last line of the query where (rel.i_prtitn,rel.i_mod_yr) in (select * from my_prtitn) and rtrim(substr(rel.c_lu_1,3,2)) > ' '; has the two columns "rel.i_prtitn" and "rel.i_mod_yr" in the where clause for which the error is thrown. Thanks, Saransh
... View more
12-07-2016
10:41 PM
The error The query
... View more
Labels:
- Labels:
-
Apache Hive
12-01-2016
11:53 PM
Thnx @yshi . Your solution worked 🙂
... View more
11-24-2016
05:49 AM
I am facing an error while trying to write a CTE query in hive. Even though a column is defined with "Date", system is takin the input as "string". My query: WITH i_part AS (select i_part, CONCAT(i_suplr,i_suplr_loc_suff), case when q_rel_suplr_shp_2<>0 then d_rel_suplr_2 case ........................................ then .... //* case and then clauses case ........................................ then .... . . . else '9999-12-31' end as d_rel_issd from pchiers where l_kdo='N' and q_rel_suplr_shp_1 <> 0 and l_rel_curr='Y' and i_recvg_loc NOT IN ('04199','01299')) select * from i_part group by i_part; Error NOTE : data type of "d_rel_issd" in question, it is defined as "Date" datatype.
... View more
Labels:
- Labels:
-
Apache Hive