Open alessio-bernesco opened 5 months ago
The error you're encountering, "AttributeError: 'bool' object has no attribute 'strip'", suggests that a boolean value is being passed to a method that expects a string, specifically within the get_columns
method of the pyhive.sqlalchemy_hive
module. This issue arises when Superset tries to retrieve the table schema from your Hive server through the Flink SQL Gateway.
To address this issue, consider the following steps:
Review the Data Types: Ensure that the data passed into methods expecting strings are indeed strings. This might require checking the code that interfaces with the Hive server for any data type mismatches.
Data Conversion: Before calling methods that operate on strings (like .strip()
), verify the data type of the variable and convert it to a string if necessary.
Superset and PyHive Versions: Ensure you're using the latest versions of Superset and PyHive, as updates may contain fixes for this issue. If the problem persists, consider reporting it to the Superset GitHub repository.
Custom Code Checks: If you have custom code or plugins in Superset for interfacing with the Hive server, add explicit checks to handle or convert non-string types before they are processed further.
This approach targets the specific error by ensuring type compatibility and applying necessary updates or patches. For more detailed guidance, reviewing the Superset codebase and the PyHive documentation might provide additional insights.
To continue the conversation, mention @dosu.
Bug description
After connecting to a Hive server (created throug a Flink Sql Gateway) i can browse the schema and tables list but when showing the table schema there's an exception in the logs:
How to reproduce the bug
In the SQL Lab or "Create Dataset" area try to connect to a Hive server created by Flink Sql Gateway, the connection and table list is retrieved but whe browsing for the table schema the exeption is fired.
Screenshots/recordings
No response
Superset version
4.0.1
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist