hive - FAILED: SemanticException [Error 10008]: Line 5:16 Ambiguous table alias 'in_2051_1' -


insert  overwrite  table out_2051 select in_2051_0.column1,in_2051_0.column2,in_2051_1.column2,in_2051_1.column1 in_2051_0 right outer join in_2051_1 on (in_2051_0.column2 = in_2051_1.column1) left outer join in_2051_1 on (in_2051_0.column2 = in_2051_1.column1) ; 

failed: semanticexception [error 10008]: line 5:16 ambiguous table alias 'in_2051_1'

what error mean , how fix it?

i can find left , right outer join 2 tables same column means "full outer join".

change sql

insert  overwrite  table out_2051 select in_2051_0.column1,in_2051_0.column2,in_2051_1.column2,in_2051_1.column1 in_2051_0 full outer join in_2051_1 on (in_2051_0.column2 = in_2051_1.column1) 

and think error means last in_2051_1 table refer same 4th line.

at on clause of 5th line. in_2051_1.column1 ambiguous, hive dont know in_2051_1 right join 1 or left join one. can give in_2051_1 alias 'in_2051_1_2' @ line 5.

i think full outer join want.


Comments

  1. @admin

    We provide all the requirements around the patients to give friendly involvement with divine and relaxed circumstances. Book an appointment and visit our clinic for our effective doctor’s experiences

    Regards,
    Dentist In Dracut, MA

    ReplyDelete
  2. @admin

    Our Center uses the latest and advanced technology for our patient treatment, so that the relationship of trust never gets cracks. At Affordable Dental Care, we acquire a strong culture of patient safety by our dental specialists.

    Regards,
    Dentist In Dracut, MA

    ReplyDelete

Post a Comment

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -