Comments (8)
The error is on the Hive server side so it's hard to say what's going on. Are you able to run queries on beeline? In principle beeline also connects to HiveServer2 via Thrift. If beeline works, can you run set
with both pyhive and beeline and diff the outputs?
from pyhive.
I did some more tests.
set
works both onbeeline
andpyhive
- doing a
select
on a table with name starting with a letter ('mytable') works fine both on pyhive and beeline - doing a
select
on a table with the name starting with a number ('2016_mytable') gives me the error, on different tables and different databases. The same query works on beeline
Can I provide anything else to help?
from pyhive.
Can you try backticking the names? It sounds like the two clients might be
using different Hive configuration. Hive has some config options that
affect identifier handling, e.g. hive.support.quoted.identifiers.
It would be useful to know if set
returns the same output from both
clients, or if there's some config option that's different.
On Thu, Jan 14, 2016 at 10:51 AM, Ivan Marin [email protected]
wrote:
I did some more tests.
- set works both on beeline and pyhive
- doing a select on a table with name starting with a letter
('mytable') works fine both on pyhive and beeline- doing a select on a table with the name starting with a number
('2016_mytable') gives me the error, on different tables and different
databases. The same query works on beelineCan I provide anything else to help?
—
Reply to this email directly or view it on GitHub
#35 (comment).
from pyhive.
I can't backtick the names, but I tested with different tables on the same database and with very similar structure, with the only difference being the names with or without numbers on the beginning of the table names, and got the same results as reported before.
I got the two different set
s and they're different. For example, the variable hive.support_quoted_identifies
is getting u'hive.support.quoted.identifiers=column'
from Pyhive and beeline. Which other variables are important?
Cheers
from pyhive.
Could you post the full diff of the set outputs? I'm not familiar with Tez so I'm not sure what would be relevant. At this point, I'm pretty sure this is an issue with configuration rather than an issue with the client.
from pyhive.
Unfortunately I can't post the diffs because of company policies. If you could guide me I can try to debug on my side to check what could be going wrong.
from pyhive.
I can't really help much, sorry. All I can say is to go through every single config and figure out what's different and whether it matters. This is probably a problem with the config that beeline and pyhive are passing up to the thrift server.
from pyhive.
Do you solved?
I also met
from pyhive.
Related Issues (20)
- "trino" entry points conflicts with `sqlalchemy-trino`
- kyuubi support HOT 3
- Project is currently unsupported? HOT 1
- pyhive.exc.DatabaseError MISSING_CATALOG_NAME
- Connection Error(TTransportException) to Hive using SQLAlchemy API
- Either set supports_statement_cache to True or False HOT 4
- precision and scale not supported for DECIMAL type
- Security Vulneratbility CVE-2022-40899 on future HOT 1
- Incompatibility with SQLAlchemy 2.0.0+ HOT 10
- TypeError: not all arguments converted during string formatting
- Unable to connect to Azure HDinsight Hive DB using PyHive python
- Release 0.7.0
- PyHive, Presto connector returning wrong resultset HOT 3
- metadata.reflect() not working causing `DESCRIBE default` because of possible bug in get_table_names() HOT 1
- Release of 0.7.1 HOT 1
- UnboundLocalError: local variable 'i' referenced before assignment
- Error connecting to Kerberos using pyHive
- Python 3.11 TTransportException: Could not start SASL: None of the mechanisms listed meet all required properties
- conflict with python12
- how to manually stophive task
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyhive.