Here, `cursor` is a [pyhive](https://github.com/dropbox/PyHive/) cursor, and 
unfortunately it expects a keyword argument called `async`: 
https://github.com/dropbox/PyHive/blob/65076bbc8697a423b438dc03e928a6dff86fd2cb/pyhive/hive.py#L337

There's an open issue to address this: 
https://github.com/dropbox/PyHive/issues/148 Unfortunately, until they fix it, 
we won't be able to run Hive queries in Superset under Python 3.7. :(

In the meantime, I would recommend changing this to:

```python
kwargs = {'async': async_}
cursor.execute(query, **kwargs)
```

This will allow Superset to work with Python 3.7 with other engines, and with 
Hive when using Python < 3.7.

[ Full content available at: 
https://github.com/apache/incubator-superset/pull/5759 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to