ibis-project / ibis

the portable Python dataframe library
https://ibis-project.org
Apache License 2.0
5.24k stars 591 forks source link

BUG: Unable to set "value" in set_options() where "." (period) exists in value #974

Closed pyite1 closed 6 years ago

pyite1 commented 7 years ago

Hello,

I am trying to set request_pool via set_options... and receive an error if the value has a "." in the field.

client.set_options({'REQUEST_POOL':'root.xxx'})
cpcloud commented 7 years ago

There's something very strange going on here. I can perform the following operation on the Impala command line, Hive command line, and PyHive, but not in ibis:

SET REQUEST_POOL = foo.bar

I suspect that there's a bug in impyla, which is the client communicating with the Hive server via thrift.

wesm commented 7 years ago

are you using the beeswax or hs2 protocol?

pyite1 commented 7 years ago

I'm using HS2.

Just for sanity sake, I can also set this value via command line.

pyite1 commented 7 years ago

I was able to get around this one by escaping the second argument:

client.set_options({'REQUEST_POOL':"'root.xxx'"})
cpcloud commented 7 years ago

Keeping this open until I have an understanding of why this happens.

cpcloud commented 7 years ago

I haven't had time to track this down since the last release. Pushing to 0.13.