Comments (1)
@Miosp Hello there! I'm a bot that can help you with bugs, questions, and contributing. I'm here to assist you while you wait for a human maintainer.
To resolve the issue where tables are not displayed in the SQL Lab when connecting Apache Kyuubi to Superset using the Hive connector through PyHive, ensure that the "Expose database in SQL Lab" option is enabled in the database settings. This setting allows the database to be queried in SQL Lab.
Here is the relevant code snippet that shows how to enable this option:
<IndeterminateCheckbox
id="expose_in_sqllab"
indeterminate={false}
checked={!!db?.expose_in_sqllab}
onChange={onInputChange}
labelText={t('Expose database in SQL Lab')}
/>
<InfoTooltip
tooltip={t('Allow this database to be queried in SQL Lab')}
/>
Make sure that the expose_in_sqllab
property is set to true
for the database configuration. This can be done through the Superset UI in the database settings under the "SQL Lab" section [1].
Additionally, ensure that the Hive engine specification is correctly configured in Superset. The HiveEngineSpec
class in superset/db_engine_specs/hive.py
should be properly set up to handle the connection and data fetching. This includes methods for fetching data, handling cursor operations, and managing schema and table information. If there are any issues with the Hive engine specification, it could also lead to tables not being displayed in SQL Lab [2].
Moreover, Superset handles schema and table caching through properties defined in the Database
class. Specifically, it uses the metadata_cache_timeout
property to manage cache timeouts for catalog, schema, and table metadata. These properties are:
catalog_cache_enabled
andcatalog_cache_timeout
schema_cache_enabled
andschema_cache_timeout
table_cache_enabled
andtable_cache_timeout
These caching mechanisms can affect the visibility of tables in SQL Lab. If the cache is enabled and the timeout is set, the metadata (including schema and table information) will be cached for the specified duration. This means that any changes to the schema or tables in the database may not be immediately visible in SQL Lab until the cache expires or is refreshed [3].
Lastly, there is a known issue with the SHOW TABLES
command when used with Apache Kyuubi. Specifically, the SHOW TABLES
command does not work as expected with Apache Kyuubi, which might be contributing to the problem [2].
Details
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from superset.
Related Issues (20)
- Customize loading spinner position and appereance HOT 1
- New permalinks retain previous permalink activeTab state HOT 1
- Add button grayed out even tough all fields are filled HOT 5
- Unable to execute any Superset command in terminal HOT 1
- Datasource access HOT 6
- Typo in IBM DB2 image reference in README.md HOT 2
- Gauge chart interval bounds and colors not working properly when added to a dashboard HOT 1
- Dataset access HOT 3
- Method 405 not allowed for guest_token fetching HOT 6
- There was an error loading the schemas HOT 4
- UUID columns show up as NULL HOT 1
- 0.12.11 fails for helm install HOT 2
- sql query is different from chart results HOT 4
- Inconsistent spacing between viz gallery charts HOT 1
- [design:suggest] Lack of space in "Create Chart" GUI HOT 2
- (NEW-Codes)##Fortnite Free V Bucks Generator(2024-2025)~Free V-Bucks Codes List 100% Working Code for Every Fortnite Player May-june
- [GET 10K-200K]**Free TikTok Follower Generator 2024-2025: Latest Tips and Tricks HOT 1
- Bug in query re-writing in Pinot with Virtual Datasets HOT 1
- Error: "Failed to execute 'removeChild' on 'Node'" after adding column to simple table chart HOT 1
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 superset.