php-thrift-sql icon indicating copy to clipboard operation
php-thrift-sql copied to clipboard

Want a way to get the query result schema information

Open alvin1 opened this issue 9 years ago • 5 comments

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.

alvin1 avatar Sep 28 '15 02:09 alvin1

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

jayaganthanjk avatar Jan 29 '16 09:01 jayaganthanjk

how ?

WG-Com avatar Oct 15 '18 10:10 WG-Com

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'

devinwang0409 avatar Jan 08 '19 08:01 devinwang0409

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.

xyu avatar Jul 24 '19 17:07 xyu

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: https://github.com/Automattic/php-thrift-sql/pull/37

wxiaoguang avatar Dec 05 '19 08:12 wxiaoguang