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

Want a way to get the query result schema information #13

Open
alvin1 opened this issue Sep 28, 2015 · 5 comments
Open

Want a way to get the query result schema information #13

alvin1 opened this issue Sep 28, 2015 · 5 comments

Comments

@alvin1
Copy link

alvin1 commented Sep 28, 2015

Hello,
I'd tried this lib last week and it working well with Impala 2.x server. But I can't find a way to get the query result schema information (field name, data type, etc...).
Is there anyway to get it?
This information is useful when I build a tool to allow consumer execute their SQL over impala.
Thanks.

@jayaganthanjk
Copy link

Hi
I am also facing the same problem. Is there any solution for this?

@WG-Com
Copy link

WG-Com commented Oct 15, 2018

how ?

@devinwang0409
Copy link

Hi
I am also facing the same problem. Is there any solution for this? try to slove it, but can not find class '\ThriftSQL\metastore\Schema'

@xyu
Copy link
Contributor

xyu commented Jul 24, 2019

Hello, currently this library gets the column information and uses it to parse results internally (e.g. as float, int, string, etc.) however there's no method that exposes that information. It certainly could be done as an enhancement.

@wxiaoguang
Copy link

I have the same requirement, and I have made a patch to support Hive's schema: https://github.com/wxiaoguang/php-thrift-sql/

Here is the P-R: #37

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

6 participants