Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case sensitive mapping Hive #58

Closed
marcelopaesrech opened this issue Jul 8, 2013 · 3 comments
Closed

Case sensitive mapping Hive #58

marcelopaesrech opened this issue Jul 8, 2013 · 3 comments

Comments

@marcelopaesrech
Copy link

I using Hive with ES and when a field named with sensitive chars in hive these fields doesn't work.

ES:
{"user": {"name": "Joseph", "countryId":"US"}}

Hive:
select * from user;
Returns:
Joseph NULL

@marcelopaesrech
Copy link
Author

Apparently the mapping from ES to Hive considers case sensitive. But when receives data from ES the plugin just gets the name field from Hive (in this case countryid - in lower case), and try to get from the map returned from ES.

I made a change in this parser, but I didn't test if when the flow is HIVE to ES if its work.

@costin
Copy link
Member

costin commented Jul 16, 2013

Mapping is currently work-in-progress and touches on some of the other issues you reported. It's too early to point to a solution - most likely there will be an option to do field aliasing (i.e. point how the fields in ES map to the fields in Hive/Pig/etc...).

What is your mapping in ES vs Hive? Can't you get around it (for now) by using an intermediate Hive table and then copying things over?

@costin
Copy link
Member

costin commented Oct 23, 2013

@marcelopaesrech can you please try 1.3 M1 or the master? This has been fixed some time ago. The issue was caused by the fact that Hive is case insensitive while ES is which lead to some issues in the way the columns were returned. Additionally, there's also support for mapping (useful when dealing with characters not supported by Hive or Pig) through es.mapping.names
Thanks!

@costin costin closed this as completed Oct 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants