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

Hive 常见问题记录 #74

Open
myyyy opened this issue Aug 27, 2018 · 0 comments
Open

Hive 常见问题记录 #74

myyyy opened this issue Aug 27, 2018 · 0 comments
Labels
DB

Comments

@myyyy
Copy link
Owner

@myyyy myyyy commented Aug 27, 2018

1.报错:Operator is only supported on struct or list of struct types xxxxx

解析结构体使用了不正确的方式
image
若结构体内包含2层则需要使用A.B["C"]这种形式去解析

2.继续接着问题1报错 Expression not in GROUP BY key xxxx

原因是因为 再group by的时候没有与select 后的 结构相同
如 select后 使用 A.B["C"]
我groub by 使用了 A.B['C']这种形式才报错了
本来以为都是累死取值,但是确是因为字符造成问题,浪费了很多时间。恶心+头疼

@myyyy myyyy added the DB label Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.