php-thrift-sql
php-thrift-sql copied to clipboard
Want a way to get the query result schema information
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.
Hi I am also facing the same problem. Is there any solution for this?
how ?
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'
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.
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