fix: yhbi enter new line

This commit is contained in:
Alex Duan 2024-12-13 21:22:53 +08:00
parent 9bb00870d7
commit c49dd1ead8
2 changed files with 16 additions and 10 deletions

View File

@ -10,12 +10,15 @@ Apache Superset provides an intuitive user interface that makes creating, sharin
Through the Python connector of TDengine, Superset can support TDengine data sources and provide functions such as data presentation and analysis Through the Python connector of TDengine, Superset can support TDengine data sources and provide functions such as data presentation and analysis
## Install Apache Superset ## Install Apache Superset
Ensure that Apache Superset v2.1.0 or above is installed. If not, please visit [official website]https://superset.apache.org/to install Ensure that Apache Superset v2.1.0 or above is installed. If not, please visit [official website]https://superset.apache.org/to install
## Install TDengine ## Install TDengine
Both TDengine Enterprise Edition and Community Edition are supported, with version requirements of 3.0 or higher Both TDengine Enterprise Edition and Community Edition are supported, with version requirements of 3.0 or higher
## Install TDengine Python Connector ## Install TDengine Python Connector
The Python connector of TDengine comes with a connection driver that supports Superset in versions 2.1.17 and later, which will be automatically installed in the Superset directory and provide data source services The Python connector of TDengine comes with a connection driver that supports Superset in versions 2.1.17 and later, which will be automatically installed in the Superset directory and provide data source services
The connection uses the WebSocket protocol, so it is necessary to install the taos ws py component of TDengine separately. The complete installation script is as follows: The connection uses the WebSocket protocol, so it is necessary to install the taos ws py component of TDengine separately. The complete installation script is as follows:
```bash ```bash
@ -24,6 +27,7 @@ pip3 install taos-ws-py
``` ```
## Configure TDengine Connection In Superset ## Configure TDengine Connection In Superset
Step 1, enter the new database connection page Step 1, enter the new database connection page
Superset -> Setting-> Database Connections -> +DATABASE Superset -> Setting-> Database Connections -> +DATABASE
Step 2, select TDengine database connection Step 2, select TDengine database connection
@ -49,6 +53,7 @@ Step 5, configure the connection string, click "TEST CONNECTION" to test if the
## Start ## Start
There is no difference in the use of TDengine data source compared to other data sources. Here is a brief introduction to basic data queries: There is no difference in the use of TDengine data source compared to other data sources. Here is a brief introduction to basic data queries:
1. Click the "+" button in the upper right corner of the Superset interface, select SQL query, and enter the query interface 1. Click the "+" button in the upper right corner of the Superset interface, select SQL query, and enter the query interface
2. Select the TDengine data source that has been created earlier from the dropdown list in the upper left corner 2. Select the TDengine data source that has been created earlier from the dropdown list in the upper left corner
@ -58,6 +63,7 @@ There is no difference in the use of TDengine data source compared to other data
6. In the SQL editor area, any SQL statement that conforms to TDengine syntax can be entered for execution 6. In the SQL editor area, any SQL statement that conforms to TDengine syntax can be entered for execution
## Example ## Example
We chose two popular templates from the Superset Chart template to showcase their effects, using smart meter data as an example: We chose two popular templates from the Superset Chart template to showcase their effects, using smart meter data as an example:
The first type is Aggregate, which displays the maximum voltage value collected per minute during the specified time period in Group 4 The first type is Aggregate, which displays the maximum voltage value collected per minute during the specified time period in Group 4