Su, Xiaomeng 76a5b1ee83 dli_sqlreference_20240227
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2024-03-27 22:02:33 +00:00

4898 lines
182 KiB
JSON
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Spark SQL Syntax Reference",
"uri":"dli_08_0221.html",
"doc_type":"sqlreference",
"p_code":"",
"code":"1"
},
{
"desc":"This section describes the common configuration items of the SQL syntax for DLI batch jobs.",
"product_code":"dli",
"title":"Common Configuration Items of Batch SQL Jobs",
"uri":"dli_08_0266.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"2"
},
{
"desc":"This section describes the Spark SQL syntax list provided by DLI. For details about the parameters and examples, see the syntax description.",
"product_code":"dli",
"title":"SQL Syntax Overview of Batch Jobs",
"uri":"dli_08_0219.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"3"
},
{
"desc":"This section describes the open source Spark SQL syntax supported by DLI. For details about the syntax, parameters, and examples, see Spark SQL Syntax.",
"product_code":"dli",
"title":"Spark Open Source Commands",
"uri":"dli_08_0477.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"4"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Databases",
"uri":"dli_08_0070.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"5"
},
{
"desc":"This statement is used to create a database.IF NOT EXISTS: Prevents system errors if the database to be created exists.COMMENT: Describes a database.DBPROPERTIES: Specifi",
"product_code":"dli",
"title":"Creating a Database",
"uri":"dli_08_0071.html",
"doc_type":"sqlreference",
"p_code":"5",
"code":"6"
},
{
"desc":"This statement is used to delete a database.IF EXISTS: Prevents system errors if the database to be deleted does not exist.DATABASE and SCHEMA can be used interchangeably",
"product_code":"dli",
"title":"Deleting a Database",
"uri":"dli_08_0072.html",
"doc_type":"sqlreference",
"p_code":"5",
"code":"7"
},
{
"desc":"This syntax is used to view the information about a specified database, including the database name and database description.EXTENDED: Displays the database properties.If",
"product_code":"dli",
"title":"Viewing a Specified Database",
"uri":"dli_08_0073.html",
"doc_type":"sqlreference",
"p_code":"5",
"code":"8"
},
{
"desc":"This syntax is used to query all current databases.NoneKeyword DATABASES is equivalent to SCHEMAS. You can use either of them in this statement.View all the current datab",
"product_code":"dli",
"title":"Viewing All Databases",
"uri":"dli_08_0074.html",
"doc_type":"sqlreference",
"p_code":"5",
"code":"9"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating an OBS Table",
"uri":"dli_08_0223.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"10"
},
{
"desc":"Create an OBS table using the DataSource syntax.The main differences between the DataSource and the Hive syntax lie in the supported data formats and the number of suppor",
"product_code":"dli",
"title":"Creating an OBS Table Using the DataSource Syntax",
"uri":"dli_08_0076.html",
"doc_type":"sqlreference",
"p_code":"10",
"code":"11"
},
{
"desc":"This statement is used to create an OBS table using the Hive syntax. The main differences between the DataSource and the Hive syntax lie in the supported data formats and",
"product_code":"dli",
"title":"Creating an OBS Table Using the Hive Syntax",
"uri":"dli_08_0077.html",
"doc_type":"sqlreference",
"p_code":"10",
"code":"12"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a DLI Table",
"uri":"dli_08_0224.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"13"
},
{
"desc":"This DataSource syntax can be used to create a DLI table. The main differences between the DataSource and the Hive syntax lie in the supported data formats and the number",
"product_code":"dli",
"title":"Creating a DLI Table Using the DataSource Syntax",
"uri":"dli_08_0098.html",
"doc_type":"sqlreference",
"p_code":"13",
"code":"14"
},
{
"desc":"This Hive syntax is used to create a DLI table. The main differences between the DataSource and the Hive syntax lie in the supported data formats and the number of suppor",
"product_code":"dli",
"title":"Creating a DLI Table Using the Hive Syntax",
"uri":"dli_08_0204.html",
"doc_type":"sqlreference",
"p_code":"13",
"code":"15"
},
{
"desc":"This statement is used to delete tables.If the table is stored in OBS, only the metadata is deleted. The data stored on OBS is not deleted.If the table is stored in DLI, ",
"product_code":"dli",
"title":"Deleting a Table",
"uri":"dli_08_0087.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"16"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Viewing Tables",
"uri":"dli_08_0089.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"17"
},
{
"desc":"This statement is used to view all tables and views in the current database.FROM/IN: followed by the name of a database whose tables and views will be displayed.NoneCreat",
"product_code":"dli",
"title":"Viewing All Tables",
"uri":"dli_08_0090.html",
"doc_type":"sqlreference",
"p_code":"17",
"code":"18"
},
{
"desc":"This statement is used to show the statements for creating a table.CREATE TABLE: statement for creating a tableThe table specified in this statement must exist. Otherwise",
"product_code":"dli",
"title":"Viewing Table Creation Statements",
"uri":"dli_08_0091.html",
"doc_type":"sqlreference",
"p_code":"17",
"code":"19"
},
{
"desc":"Check the properties of a table.TBLPROPERTIES: This statement allows you to add a key/value property to a table.property_name is case sensitive. You cannot specify multip",
"product_code":"dli",
"title":"Viewing Table Properties",
"uri":"dli_08_0092.html",
"doc_type":"sqlreference",
"p_code":"17",
"code":"20"
},
{
"desc":"This statement is used to query all columns in a specified table.COLUMNS: columns in the current tableFROM/IN: followed by the name of a database whose tables and views w",
"product_code":"dli",
"title":"Viewing All Columns in a Specified Table",
"uri":"dli_08_0093.html",
"doc_type":"sqlreference",
"p_code":"17",
"code":"21"
},
{
"desc":"This statement is used to view all partitions in a specified table.PARTITIONS: partitions in a specified tablePARTITION: a specified partitionThe table specified in this ",
"product_code":"dli",
"title":"Viewing All Partitions in a Specified Table",
"uri":"dli_08_0094.html",
"doc_type":"sqlreference",
"p_code":"17",
"code":"22"
},
{
"desc":"This statement is used to view the table statistics. The names and data types of all columns in a specified table will be returned.EXTENDED: displays all metadata of the ",
"product_code":"dli",
"title":"Viewing Table Statistics",
"uri":"dli_08_0105.html",
"doc_type":"sqlreference",
"p_code":"17",
"code":"23"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Modifying a Table",
"uri":"dli_08_0262.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"24"
},
{
"desc":"This statement is used to add one or more new columns to a table.ADD COLUMNS: columns to addCOMMENT: column descriptionDo not run this SQL statement concurrently. Otherwi",
"product_code":"dli",
"title":"Adding a Column",
"uri":"dli_08_0263.html",
"doc_type":"sqlreference",
"p_code":"24",
"code":"25"
},
{
"desc":"You can modify the column comments of non-partitioned or partitioned tables.CHANGE COLUMN: Modify a column.COMMENT: column descriptionChange the comment of the c1 column ",
"product_code":"dli",
"title":"Modifying Column Comments",
"uri":"dli_08_0470.html",
"doc_type":"sqlreference",
"p_code":"24",
"code":"26"
},
{
"desc":"DLI controls multiple versions of backup data for restoration. After the multiversion function is enabled, the system automatically backs up table data when you delete or",
"product_code":"dli",
"title":"Enabling or Disabling Multiversion Backup",
"uri":"dli_08_0354.html",
"doc_type":"sqlreference",
"p_code":"24",
"code":"27"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Syntax for Partitioning a Table",
"uri":"dli_08_0080.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"28"
},
{
"desc":"After an OBS partitioned table is created, no partition information is generated for the table. Partition information is generated only after you:Insert data to the OBS p",
"product_code":"dli",
"title":"Adding Partition Data (Only OBS Tables Supported)",
"uri":"dli_08_0081.html",
"doc_type":"sqlreference",
"p_code":"28",
"code":"29"
},
{
"desc":"This statement is used to rename partitions.PARTITION: a specified partitionRENAME: new name of the partitionThis statement is used for OBS table operations.The table and",
"product_code":"dli",
"title":"Renaming a Partition (Only OBS Tables Supported)",
"uri":"dli_08_0082.html",
"doc_type":"sqlreference",
"p_code":"28",
"code":"30"
},
{
"desc":"This statement is used to delete one or more partitions from a partitioned table.Partitioned tables are classified into OBS tables and DLI tables. You can delete one or m",
"product_code":"dli",
"title":"Deleting a Partition",
"uri":"dli_08_0083.html",
"doc_type":"sqlreference",
"p_code":"28",
"code":"31"
},
{
"desc":"This statement is used to delete one or more partitions based on specified conditions.This statement is only used for OBS tables.The table in which partitions are to be d",
"product_code":"dli",
"title":"Deleting Partitions by Specifying Filter Criteria (Only Supported on OBS Tables)",
"uri":"dli_08_0343.html",
"doc_type":"sqlreference",
"p_code":"28",
"code":"32"
},
{
"desc":"This statement is used to modify the positions of table partitions.PARTITION: a specified partitionLOCATION: path of the partitionFor a table partition whose position is ",
"product_code":"dli",
"title":"Altering the Partition Location of a Table (Only OBS Tables Supported)",
"uri":"dli_08_0084.html",
"doc_type":"sqlreference",
"p_code":"28",
"code":"33"
},
{
"desc":"This statement is used to update the partition information about a table in the Metastore.OrPARTITIONS: partition informationSERDEPROPERTIES: Serde attributeThis statemen",
"product_code":"dli",
"title":"Updating Partitioned Table Data (Only OBS Tables Supported)",
"uri":"dli_08_0079.html",
"doc_type":"sqlreference",
"p_code":"28",
"code":"34"
},
{
"desc":"Spark caches Parquet metadata to improve performance. If you update a Parquet table, the cached metadata is not updated. Spark SQL cannot find the newly inserted data and",
"product_code":"dli",
"title":"Updating Table Metadata with REFRESH TABLE",
"uri":"dli_08_0359.html",
"doc_type":"sqlreference",
"p_code":"28",
"code":"35"
},
{
"desc":"The LOAD DATA function can be used to import data in CSV, Parquet, ORC, JSON, and Avro formats. The data is converted into the Parquet data format for storage.INPATH: pat",
"product_code":"dli",
"title":"Importing Data to the Table",
"uri":"dli_08_0100.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"36"
},
{
"desc":"This statement is used to insert the SELECT query result or a certain data record into a table.Insert the SELECT query result into a table.INSERT INTO [TABLE] [db_name.]t",
"product_code":"dli",
"title":"Inserting Data",
"uri":"dli_08_0095.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"37"
},
{
"desc":"This statement is used to delete data from the DLI or OBS table.Only data in the DLI or OBS table can be deleted.",
"product_code":"dli",
"title":"Clearing Data",
"uri":"dli_08_0217.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"38"
},
{
"desc":"This statement is used to directly write query results to a specified directory. The query results can be stored in CSV, Parquet, ORC, JSON, or Avro format.USING: Specifi",
"product_code":"dli",
"title":"Exporting Search Results",
"uri":"dli_08_0205.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"39"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Backing Up and Restoring Data of Multiple Versions",
"uri":"dli_08_0349.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"40"
},
{
"desc":"After multiversion is enabled, backup data is retained for seven days by default. You can change the retention period by setting system parameterdli.multi.version.retenti",
"product_code":"dli",
"title":"Setting the Retention Period for Multiversion Backup Data",
"uri":"dli_08_0350.html",
"doc_type":"sqlreference",
"p_code":"40",
"code":"41"
},
{
"desc":"After the multiversion function is enabled, you can run the SHOW HISTORY command to view the backup data of a table. For details about the syntax for enabling or disablin",
"product_code":"dli",
"title":"Viewing Multiversion Backup Data",
"uri":"dli_08_0351.html",
"doc_type":"sqlreference",
"p_code":"40",
"code":"42"
},
{
"desc":"After the multiversion function is enabled, you can run the RESTORE TABLE statement to restore a table or partition of a specified version. For details about the syntax f",
"product_code":"dli",
"title":"Restoring Multiversion Backup Data",
"uri":"dli_08_0352.html",
"doc_type":"sqlreference",
"p_code":"40",
"code":"43"
},
{
"desc":"After the multiversion function is enabled, expired backup data will be directly deleted by the system when theinsert overwrite or truncate statement is executed. You can",
"product_code":"dli",
"title":"Configuring the Trash Bin for Expired Multiversion Data",
"uri":"dli_08_0353.html",
"doc_type":"sqlreference",
"p_code":"40",
"code":"44"
},
{
"desc":"The retention period of multiversion backup data takes effect each time the insert overwrite or truncate statement is executed. If neither statement is executed for the t",
"product_code":"dli",
"title":"Deleting Multiversion Backup Data",
"uri":"dli_08_0355.html",
"doc_type":"sqlreference",
"p_code":"40",
"code":"45"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Table Lifecycle Management",
"uri":"en-us_topic_0000001571023676.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"46"
},
{
"desc":"DLI provides table lifecycle management to allow you to specify the lifecycle of a table when creating the table. DLI determines whether to reclaim a table based on the t",
"product_code":"dli",
"title":"Specifying the Lifecycle of a Table When Creating the Table",
"uri":"en-us_topic_0000001621263317.html",
"doc_type":"sqlreference",
"p_code":"46",
"code":"47"
},
{
"desc":"This section describes how to modify the lifecycle of an existing partitioned or non-partitioned table.When the lifecycle function is enabled for the first time, the syst",
"product_code":"dli",
"title":"Modifying the Lifecycle of a Table",
"uri":"en-us_topic_0000001621382957.html",
"doc_type":"sqlreference",
"p_code":"46",
"code":"48"
},
{
"desc":"This section describes how to disable or restore the lifecycle of a specified table or partition.You can disable or restore the lifecycle of a table in either of the foll",
"product_code":"dli",
"title":"Disabling or Restoring the Lifecycle of a Table",
"uri":"en-us_topic_0000001621542965.html",
"doc_type":"sqlreference",
"p_code":"46",
"code":"49"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with an HBase Table",
"uri":"dli_08_0118.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"50"
},
{
"desc":"This statement is used to create a DLI table and associate it with an existing HBase table.In Spark cross-source development scenarios, there is a risk of password leakag",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with HBase",
"uri":"dli_08_0119.html",
"doc_type":"sqlreference",
"p_code":"50",
"code":"51"
},
{
"desc":"This statement is used to insert data in a DLI table to the associated HBase table.Insert the SELECT query result into a table.INSERT INTO DLI_TABLE\n SELECT field1,field",
"product_code":"dli",
"title":"Inserting Data to an HBase Table",
"uri":"dli_08_0120.html",
"doc_type":"sqlreference",
"p_code":"50",
"code":"52"
},
{
"desc":"This statement is used to query data in an HBase table.LIMIT is used to limit the query results. Only INT type is supported by the number parameter.The table to be querie",
"product_code":"dli",
"title":"Querying an HBase Table",
"uri":"dli_08_0121.html",
"doc_type":"sqlreference",
"p_code":"50",
"code":"53"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with an OpenTSDB Table",
"uri":"dli_08_0220.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"54"
},
{
"desc":"Run the CREATE TABLE statement to create the DLI table and associate it with the existing metric in OpenTSDB. This syntax supports the OpenTSDB of CloudTable and MRS.Befo",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with OpenTSDB",
"uri":"dli_08_0122.html",
"doc_type":"sqlreference",
"p_code":"54",
"code":"55"
},
{
"desc":"Run the INSERT INTO statement to insert the data in the DLI table to the associated OpenTSDB metric.If no metric exists on the OpenTSDB, a new metric is automatically cre",
"product_code":"dli",
"title":"Inserting Data to the OpenTSDB Table",
"uri":"dli_08_0123.html",
"doc_type":"sqlreference",
"p_code":"54",
"code":"56"
},
{
"desc":"This SELECT command is used to query data in an OpenTSDB table.If no metric exists in OpenTSDB, an error will be reported when the corresponding DLI table is queried.If t",
"product_code":"dli",
"title":"Querying an OpenTSDB Table",
"uri":"dli_08_0124.html",
"doc_type":"sqlreference",
"p_code":"54",
"code":"57"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with a DWS table",
"uri":"dli_08_0192.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"58"
},
{
"desc":"This statement is used to create a DLI table and associate it with an existing DWS table.In Spark cross-source development scenarios, there is a risk of password leakage ",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with DWS",
"uri":"dli_08_0193.html",
"doc_type":"sqlreference",
"p_code":"58",
"code":"59"
},
{
"desc":"This statement is used to insert data in a DLI table to the associated DWS table.Insert the SELECT query result into a table.INSERT INTO DLI_TABLE\n SELECT field1,field2.",
"product_code":"dli",
"title":"Inserting Data to the DWS Table",
"uri":"dli_08_0194.html",
"doc_type":"sqlreference",
"p_code":"58",
"code":"60"
},
{
"desc":"This statement is used to query data in a DWS table.LIMIT is used to limit the query results. Only INT type is supported by the number parameter.The table to be queried m",
"product_code":"dli",
"title":"Querying the DWS Table",
"uri":"dli_08_0195.html",
"doc_type":"sqlreference",
"p_code":"58",
"code":"61"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with an RDS Table",
"uri":"dli_08_0196.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"62"
},
{
"desc":"This statement is used to create a DLI table and associate it with an existing RDS table. This function supports access to the MySQL and PostgreSQL clusters of RDS.In Spa",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with RDS",
"uri":"dli_08_0197.html",
"doc_type":"sqlreference",
"p_code":"62",
"code":"63"
},
{
"desc":"This statement is used to insert data in a DLI table to the associated RDS table.Insert the SELECT query result into a table.INSERT INTO DLI_TABLE\n SELECT field1,field2.",
"product_code":"dli",
"title":"Inserting Data to the RDS Table",
"uri":"dli_08_0198.html",
"doc_type":"sqlreference",
"p_code":"62",
"code":"64"
},
{
"desc":"This statement is used to query data in an RDS table.LIMIT is used to limit the query results. Only INT type is supported by the number parameter.The table to be queried ",
"product_code":"dli",
"title":"Querying the RDS Table",
"uri":"dli_08_0199.html",
"doc_type":"sqlreference",
"p_code":"62",
"code":"65"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with a CSS Table",
"uri":"dli_08_0200.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"66"
},
{
"desc":"This statement is used to create a DLI table and associate it with an existing CSS table.In Spark cross-source development scenarios, there is a risk of password leakage ",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with CSS",
"uri":"dli_08_0201.html",
"doc_type":"sqlreference",
"p_code":"66",
"code":"67"
},
{
"desc":"This statement is used to insert data in a DLI table to the associated CSS table.Insert the SELECT query result into a table.INSERT INTO DLI_TABLE\n SELECT field1,field2.",
"product_code":"dli",
"title":"Inserting Data to the CSS Table",
"uri":"dli_08_0202.html",
"doc_type":"sqlreference",
"p_code":"66",
"code":"68"
},
{
"desc":"This statement is used to query data in a CSS table.LIMIT is used to limit the query results. Only INT type is supported by the number parameter.The table to be queried m",
"product_code":"dli",
"title":"Querying the CSS Table",
"uri":"dli_08_0203.html",
"doc_type":"sqlreference",
"p_code":"66",
"code":"69"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with a DCS Table",
"uri":"dli_08_0225.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"70"
},
{
"desc":"This statement is used to create a DLI table and associate it with an existing DCS key.In Spark cross-source development scenarios, there is a risk of password leakage if",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with DCS",
"uri":"dli_08_0226.html",
"doc_type":"sqlreference",
"p_code":"70",
"code":"71"
},
{
"desc":"This statement is used to insert data in a DLI table to the DCS key.Insert the SELECT query result into a table.INSERT INTO DLI_TABLE\n SELECT field1,field2...\n [FROM DL",
"product_code":"dli",
"title":"Inserting Data to a DCS Table",
"uri":"dli_08_0227.html",
"doc_type":"sqlreference",
"p_code":"70",
"code":"72"
},
{
"desc":"This statement is used to query data in a DCS table.LIMIT is used to limit the query results. Only INT type is supported by the number parameter.Query data in the test_re",
"product_code":"dli",
"title":"Querying the DCS Table",
"uri":"dli_08_0228.html",
"doc_type":"sqlreference",
"p_code":"70",
"code":"73"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with a DDS Table",
"uri":"dli_08_0229.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"74"
},
{
"desc":"This statement is used to create a DLI table and associate it with an existing DDS collection.In Spark cross-source development scenarios, there is a risk of password lea",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with DDS",
"uri":"dli_08_0230.html",
"doc_type":"sqlreference",
"p_code":"74",
"code":"75"
},
{
"desc":"This statement is used to insert data in a DLI table to the associated DDS table.Insert the SELECT query result into a table.INSERT INTO DLI_TABLE\n SELECT field1,field2.",
"product_code":"dli",
"title":"Inserting Data to the DDS Table",
"uri":"dli_08_0231.html",
"doc_type":"sqlreference",
"p_code":"74",
"code":"76"
},
{
"desc":"This statement is used to query data in a DDS table.LIMIT is used to limit the query results. Only INT type is supported by the number parameter.If schema information is ",
"product_code":"dli",
"title":"Querying the DDS Table",
"uri":"dli_08_0232.html",
"doc_type":"sqlreference",
"p_code":"74",
"code":"77"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Datasource Connection with an Oracle Table",
"uri":"dli_08_0460.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"78"
},
{
"desc":"This statement is used to create a DLI table and associate it with an existing Oracle table.Before creating a DLI table and associating it with Oracle, you need to create",
"product_code":"dli",
"title":"Creating a DLI Table and Associating It with Oracle",
"uri":"dli_08_0461.html",
"doc_type":"sqlreference",
"p_code":"78",
"code":"79"
},
{
"desc":"This statement is used to insert data into an associated Oracle table.Insert the SELECT query result into a table.INSERT INTO DLI_TABLE\n SELECT field1,field2...\n [FROM ",
"product_code":"dli",
"title":"Inserting Data to an Oracle Table",
"uri":"dli_08_0462.html",
"doc_type":"sqlreference",
"p_code":"78",
"code":"80"
},
{
"desc":"This statement is used to query data in an Oracle table.LIMIT is used to limit the query results. Only INT type is supported by the number parameter.If schema information",
"product_code":"dli",
"title":"Querying an Oracle Table",
"uri":"dli_08_0463.html",
"doc_type":"sqlreference",
"p_code":"78",
"code":"81"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Views",
"uri":"dli_08_0129.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"82"
},
{
"desc":"This statement is used to create views.CREATE VIEW: creates views based on the given select statement. The result of the select statement will not be written into the dis",
"product_code":"dli",
"title":"Creating a View",
"uri":"dli_08_0130.html",
"doc_type":"sqlreference",
"p_code":"82",
"code":"83"
},
{
"desc":"This statement is used to delete views.DROP: Deletes the metadata of a specified view. Although views and tables have many common points, the DROP TABLE statement cannot ",
"product_code":"dli",
"title":"Deleting a View",
"uri":"dli_08_0131.html",
"doc_type":"sqlreference",
"p_code":"82",
"code":"84"
},
{
"desc":"This statement returns the logical plan and physical execution plan for the SQL statement.EXTENDED: After this keyword is specified, the logical and physical plans are ou",
"product_code":"dli",
"title":"Viewing the Execution Plan",
"uri":"dli_08_0138.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"85"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Data Permissions Management",
"uri":"dli_08_0139.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"86"
},
{
"desc":"Table 1 describes the SQL statement permission matrix in DLI in terms of permissions on databases, tables, and roles.For privilege granting or revocation on databases and",
"product_code":"dli",
"title":"Data Permissions List",
"uri":"dli_08_0140.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"87"
},
{
"desc":"This statement is used to create a role in the current database or a specified database.Only users with the CREATE_ROLE permission on the database can create roles. For e",
"product_code":"dli",
"title":"Creating a Role",
"uri":"dli_08_0141.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"88"
},
{
"desc":"This statement is used to delete a role in the current database or a specified database.NoneThe role_name to be deleted must exist in the current database or the specifie",
"product_code":"dli",
"title":"Deleting a Role",
"uri":"dli_08_0148.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"89"
},
{
"desc":"This statement is used to bind a user with a role.NoneThe role_name and username must exist. Otherwise, an error will be reported.",
"product_code":"dli",
"title":"Binding a Role",
"uri":"dli_08_0142.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"90"
},
{
"desc":"This statement is used to unbind the user with the role.Nonerole_name and user_name must exist and user_name has been bound to role_name.To unbind the user_name1 from rol",
"product_code":"dli",
"title":"Unbinding a Role",
"uri":"dli_08_0147.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"91"
},
{
"desc":"This statement is used to display all roles or roles bound to the user_name in the current database.ALL: Displays all roles.Keywords ALL and user_name cannot coexist.To d",
"product_code":"dli",
"title":"Displaying a Role",
"uri":"dli_08_0143.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"92"
},
{
"desc":"This statement is used to grant permissions to a user or role.ROLE: The subsequent role_name must be a role.USER: The subsequent user_name must be a user.The privilege mu",
"product_code":"dli",
"title":"Granting a Permission",
"uri":"dli_08_0144.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"93"
},
{
"desc":"This statement is used to revoke permissions granted to a user or role.ROLE: The subsequent role_name must be a role.USER: The subsequent user_name must be a user.The pri",
"product_code":"dli",
"title":"Revoking a Permission",
"uri":"dli_08_0146.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"94"
},
{
"desc":"This statement is used to show the permissions granted to a user on a resource.USER: The subsequent user_name must be a user.The resource can be a queue, database, table,",
"product_code":"dli",
"title":"Showing Granted Permissions",
"uri":"dli_08_0145.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"95"
},
{
"desc":"This statement is used to display the binding relationship between roles and a user in the current database.NoneThe ROLE variable must exist.",
"product_code":"dli",
"title":"Displaying the Binding Relationship Between All Roles and Users",
"uri":"dli_08_0149.html",
"doc_type":"sqlreference",
"p_code":"86",
"code":"96"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Data Types",
"uri":"dli_08_0056.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"97"
},
{
"desc":"Data type is a basic attribute of data. It is used to distinguish different types of data. Different data types occupy different storage space and support different opera",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0057.html",
"doc_type":"sqlreference",
"p_code":"97",
"code":"98"
},
{
"desc":"Table 1 lists the primitive data types supported by DLI.VARCHAR and CHAR data is stored in STRING type on DLI. Therefore, the string that exceeds the specified length wil",
"product_code":"dli",
"title":"Primitive Data Types",
"uri":"dli_08_0058.html",
"doc_type":"sqlreference",
"p_code":"97",
"code":"99"
},
{
"desc":"Spark SQL supports complex data types, as shown in Table 1.When a table containing fields of the complex data type is created, the storage format of this table cannot be ",
"product_code":"dli",
"title":"Complex Data Types",
"uri":"dli_08_0059.html",
"doc_type":"sqlreference",
"p_code":"97",
"code":"100"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"User-Defined Functions",
"uri":"dli_08_0282.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"101"
},
{
"desc":"DLI allows you to create and use user-defined functions (UDF) and user-defined table functions (UDTF) in Spark jobs.OrIf a function with the same name exists in the datab",
"product_code":"dli",
"title":"Creating a Function",
"uri":"dli_08_0283.html",
"doc_type":"sqlreference",
"p_code":"101",
"code":"102"
},
{
"desc":"This statement is used to delete functions.TEMPORARY: Indicates whether the function to be deleted is a temporary function.IF EXISTS: Used when the function to be deleted",
"product_code":"dli",
"title":"Deleting a Function",
"uri":"dli_08_0284.html",
"doc_type":"sqlreference",
"p_code":"101",
"code":"103"
},
{
"desc":"Displays information about a specified function.EXTENDED: displays extended usage information.The metadata (implementation class and usage) of an existing function is ret",
"product_code":"dli",
"title":"Displaying Function Details",
"uri":"dli_08_0281.html",
"doc_type":"sqlreference",
"p_code":"101",
"code":"104"
},
{
"desc":"View all functions in the current project.In the preceding statement, regex is a regular expression. For details about its parameters, see Table 1.For details about other",
"product_code":"dli",
"title":"Displaying All Functions",
"uri":"dli_08_0285.html",
"doc_type":"sqlreference",
"p_code":"101",
"code":"105"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Built-in Functions",
"uri":"dli_08_0064.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"106"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Date Functions",
"uri":"dli_08_0471.html",
"doc_type":"sqlreference",
"p_code":"106",
"code":"107"
},
{
"desc":"Table 1 lists the date functions supported by DLI.",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0066.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"108"
},
{
"desc":"This function is used to calculate the date after a date value is increased by a specified number of months. That is, it calculates the data that is num_months after star",
"product_code":"dli",
"title":"add_months",
"uri":"dli_spark_add_months.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"109"
},
{
"desc":"This function is used to return the current date, in the yyyy-mm-dd format.Similar function: getdate. The getdate function is used to return the current system time, in t",
"product_code":"dli",
"title":"current_date",
"uri":"dli_spark_current_date.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"110"
},
{
"desc":"This function is used to return the current timestamp.NoneThe return value is of the TIMESTAMP type.The value 1692002816300 is returned.",
"product_code":"dli",
"title":"current_timestamp",
"uri":"dli_spark_current_timestamp.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"111"
},
{
"desc":"This function is used to calculate the number of days in which start_date is increased by days.To obtain the date with a specified change range based on the current date,",
"product_code":"dli",
"title":"date_add",
"uri":"dli_spark_date_add.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"112"
},
{
"desc":"This function is used to change a date based on datepart and delta.To obtain the date with a specified change range based on the current date, use this function together ",
"product_code":"dli",
"title":"dateadd",
"uri":"dli_spark_dateadd.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"113"
},
{
"desc":"This function is used to calculate the number of days in which start_date is subtracted by days.To obtain the date with a specified change range based on the current date",
"product_code":"dli",
"title":"date_sub",
"uri":"dli_spark_date_sub.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"114"
},
{
"desc":"This function is used to convert a date into a string based on the format specified by format.The return value is of the STRING type.If the value of date is not of the DA",
"product_code":"dli",
"title":"date_format",
"uri":"dli_spark_date_format.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"115"
},
{
"desc":"This function is used to calculate the difference between date1 and date2.Similar function: datediff1. The datediff1 function is used to calculate the difference between ",
"product_code":"dli",
"title":"datediff",
"uri":"dli_spark_datediff.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"116"
},
{
"desc":"This function is used to calculate the difference between date1 and date2 and return the difference in a specified datepart.Similar function: datediff. The datediff funct",
"product_code":"dli",
"title":"datediff1",
"uri":"dli_spark_datediff1.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"117"
},
{
"desc":"This function is used to calculate the value that meets the specified datepart in date.The return value is of the BIGINT type.If the value of date is not of the DATE or S",
"product_code":"dli",
"title":"datepart",
"uri":"dli_spark_datepart.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"118"
},
{
"desc":"This function is used to calculate the date otained through the truncation of a specified date based on a specified datepart.It truncates the date before the specified da",
"product_code":"dli",
"title":"datetrunc",
"uri":"dli_spark_datetrunc.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"119"
},
{
"desc":"This function is used to return the day of a specified date.The return value is of the INT type.If the value of date is not of the DATE or STRING type, the error message ",
"product_code":"dli",
"title":"day/dayofmonth",
"uri":"dli_spark_daydayofmonth.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"120"
},
{
"desc":"This function is used to convert a timestamp represented by a numeric UNIX value to a date value.The return value is of the STRING type, in the yyyy-mm-dd hh:mi:ss format",
"product_code":"dli",
"title":"from_unixtime",
"uri":"dli_spark_from_unixtime.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"121"
},
{
"desc":"This function is used to convert a UTC timestamp to a UNIX timestamp in a given time zone.The return value is of the TIMESTAMP type.If the value of timestamp is not of th",
"product_code":"dli",
"title":"from_utc_timestamp",
"uri":"dli_spark_from_utc_timestamp.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"122"
},
{
"desc":"This function is used to return the current system time, in the yyyy-mm-dd hh:mi:ss format.Similar function: current_date. The current_date function is used to return the",
"product_code":"dli",
"title":"getdate",
"uri":"dli_spark_getdate.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"123"
},
{
"desc":"This function is used to return the hour (from 0 to 23) of a specified time.The return value is of the INT type.If the value of date is not of the DATE or STRING type, th",
"product_code":"dli",
"title":"hour",
"uri":"dli_spark_hour.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"124"
},
{
"desc":"This function is used to determine whether a date string can be converted into a date value based on a specified format.The return value is of the BOOLEAN type.If the val",
"product_code":"dli",
"title":"isdate",
"uri":"dli_spark_isdate.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"125"
},
{
"desc":"This function is used to return the last day of the month a date belongs to.Similar function: lastday. The lastday function is used to return the last day of the month a ",
"product_code":"dli",
"title":"last_day",
"uri":"dli_spark_last_day.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"126"
},
{
"desc":"This function is used to return the last day of the month a date belongs to. The hour, minute, and second part is 00:00:00.Similar function: last_day. The last_day functi",
"product_code":"dli",
"title":"lastday",
"uri":"dli_spark_lastday.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"127"
},
{
"desc":"This function is used to return the minute (from 0 to 59) of a specified time.The return value is of the INT type.If the value of date is not of the DATE or STRING type, ",
"product_code":"dli",
"title":"minute",
"uri":"dli_spark_minute.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"128"
},
{
"desc":"This function is used to return the month (from January to December) of a specified time.The return value is of the INT type.If the value of date is not of the DATE or ST",
"product_code":"dli",
"title":"month",
"uri":"dli_spark_month.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"129"
},
{
"desc":"This function returns the month difference between date1 and date2.The return value is of the DOUBLE type.If the values of date1 and date2 are not of the DATE or STRING t",
"product_code":"dli",
"title":"months_between",
"uri":"dli_spark_months_between.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"130"
},
{
"desc":"This function is used to return the date closest to day_of_week after start_date.The return value is of the DATE type, in the yyyy-mm-dd format.If the value of start_date",
"product_code":"dli",
"title":"next_day",
"uri":"dli_spark_next_day.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"131"
},
{
"desc":"This function is used to return the quarter of a date. The value ranges from 1 to 4.The return value is of the INT type.If the value of date is not of the DATE or STRING ",
"product_code":"dli",
"title":"quarter",
"uri":"dli_spark_quarter.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"132"
},
{
"desc":"This function is used to return the second (from 0 to 59) of a specified time.The return value is of the INT type.If the value of date is not of the DATE or STRING type, ",
"product_code":"dli",
"title":"second",
"uri":"dli_spark_second.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"133"
},
{
"desc":"This function is used to convert a date into a string in a specified format.The return value is of the STRING type.If the value of date is not of the DATE or STRING type,",
"product_code":"dli",
"title":"to_char",
"uri":"dli_spark_to_char.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"134"
},
{
"desc":"This function is used to return the year, month, and day in a time.Similar function: to_date1. The to_date1 function is used to convert a string in a specified format to ",
"product_code":"dli",
"title":"to_date",
"uri":"dli_spark_to_date.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"135"
},
{
"desc":"This function is used to convert a string in a specified format to a date value.Similar function: to_date. The to_date function is used to return the year, month, and day",
"product_code":"dli",
"title":"to_date1",
"uri":"dli_spark_to_date1.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"136"
},
{
"desc":"This function is used to convert a timestamp in a given time zone to a UTC timestamp.The return value is of the BIGINT type.If the value of timestamp is not of the DATE o",
"product_code":"dli",
"title":"to_utc_timestamp",
"uri":"dli_spark_to_utc_timestamp.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"137"
},
{
"desc":"This function is used to reset a date to a specific format.Resetting means returning to default values, where the default values for year, month, and day are 01, and the ",
"product_code":"dli",
"title":"trunc",
"uri":"dli_spark_trunc.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"138"
},
{
"desc":"This function is used to convert a date value to a numeric date value in UNIX format.The function returns the first ten digits of the timestamp in normal UNIX format.The ",
"product_code":"dli",
"title":"unix_timestamp",
"uri":"dli_spark_unix_timestamp.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"139"
},
{
"desc":"This function is used to return the day of the current week.The return value is of the INT type.If Monday is used as the first day of a week, the value 0 is returned. For",
"product_code":"dli",
"title":"weekday",
"uri":"dli_spark_weekday.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"140"
},
{
"desc":"This function is used to return the week number (from 0 to 53) of a specified date.The return value is of the INT type.If the value of date is not of the DATE or STRING t",
"product_code":"dli",
"title":"weekofyear",
"uri":"dli_spark_weekofyear.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"141"
},
{
"desc":"This function is used to return the year of a specified date.The return value is of the INT type.If the value of date is not of the DATE or STRING type, the error message",
"product_code":"dli",
"title":"year",
"uri":"dli_spark_year.html",
"doc_type":"sqlreference",
"p_code":"107",
"code":"142"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"String Functions",
"uri":"dli_08_0472.html",
"doc_type":"sqlreference",
"p_code":"106",
"code":"143"
},
{
"desc":"Table 1 lists the string functions supported by DLI.",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0067.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"144"
},
{
"desc":"This function is used to return the ASCII code of the first character in str.The return value is of the BIGINT type.If the value of str is not of the STRING, BIGINT, DOUB",
"product_code":"dli",
"title":"ascii",
"uri":"dli_spark_ascii.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"145"
},
{
"desc":"This function is used to concatenate arrays or strings.If multiple arrays are used as the input, all elements in the arrays are connected to generate a new array.If multi",
"product_code":"dli",
"title":"concat",
"uri":"dli_spark_concat.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"146"
},
{
"desc":"This function is used to return a string concatenated from multiple input strings that are separated by specified separators.orReturns the result of joining all the strin",
"product_code":"dli",
"title":"concat_ws",
"uri":"dli_spark_concat_ws.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"147"
},
{
"desc":"This parameter is used to return the number of characters in str1 that appear in str2.The return value is of the BIGINT type.If the value of str1 or str2 is NULL, NULL is",
"product_code":"dli",
"title":"char_matchcount",
"uri":"dli_spark_char_matchcount.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"148"
},
{
"desc":"This function is used to encode str in charset format.encode(string <str>, string <charset>)The return value is of the BINARY type.If the value of str or charset is NULL,",
"product_code":"dli",
"title":"encode",
"uri":"dli_spark_encode.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"149"
},
{
"desc":"This function is used to return the position (stating from 1) of str1 in str2 separated by commas (,).The return value is of the BIGINT type.If str1 cannot be matched in ",
"product_code":"dli",
"title":"find_in_set",
"uri":"dli_spark_find_in_set.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"150"
},
{
"desc":"This function is used to parse the JSON object in a specified JSON path. The function will return NULL if the JSON object is invalid.The return value is of the STRING typ",
"product_code":"dli",
"title":"get_json_object",
"uri":"dli_spark_get_json_object.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"151"
},
{
"desc":"This function is used to return the index of substr that appears earliest in str.It returns NULL if either of the arguments are NULL and returns 0 if substr does not exis",
"product_code":"dli",
"title":"instr",
"uri":"dli_spark_instr.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"152"
},
{
"desc":"This function is used to return the position of substring str2 in string str1.Similar function: instr. The instr function is used to return the index of substr that appea",
"product_code":"dli",
"title":"instr1",
"uri":"dli_spark_instr1.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"153"
},
{
"desc":"This function is used to convert the first letter of each word of a string to upper case and all other letters to lower case.The return value is of the STRING type. In th",
"product_code":"dli",
"title":"initcap",
"uri":"dli_spark_initcap.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"154"
},
{
"desc":"This function is used to split str by split1, convert each group into a key-value pair by split2, and return the value corresponding to the key.The return value is of the",
"product_code":"dli",
"title":"keyvalue",
"uri":"dli_spark_keyvalue.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"155"
},
{
"desc":"This function is used to return the length of a string.Similar function: lengthb. The lengthb function is used to return the length of string str in bytes and return a va",
"product_code":"dli",
"title":"length",
"uri":"dli_spark_length.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"156"
},
{
"desc":"This function is used to return the length of a specified string in bytes.Similar function: length. The length function is used to return the length of a string and retur",
"product_code":"dli",
"title":"lengthb",
"uri":"dli_spark_lengthb.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"157"
},
{
"desc":"This function is used to returns the Levenshtein distance between two strings, for example, levenshtein('kitten','sitting') = 3.Levenshtein distance is a type of edit dis",
"product_code":"dli",
"title":"levenshtein",
"uri":"dli_spark_levenshtein.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"158"
},
{
"desc":"This function is used to return the position of substr in str. You can specify the starting position of your search using \"start_pos,\" which starts from 1.The return valu",
"product_code":"dli",
"title":"locate",
"uri":"dli_spark_locate.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"159"
},
{
"desc":"This function is used to convert all characters of a string to the lower case.The return value is of the STRING type.If the value of the input parameter is not of the STR",
"product_code":"dli",
"title":"lower/lcase",
"uri":"dli_spark_lower_lcase.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"160"
},
{
"desc":"This function is used to return a string of a specified length. If the length of the given string (str1) is shorter than the specified length (length), the given string i",
"product_code":"dli",
"title":"lpad",
"uri":"dli_spark_lpad.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"161"
},
{
"desc":"This function is used to remove characters from the left of str.If trimChars is not specified, spaces are removed by default.If trimChars is specified, the function remov",
"product_code":"dli",
"title":"ltrim",
"uri":"dli_spark_ltrim.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"162"
},
{
"desc":"This character is used to return the specified part of a given URL. Valid values of partToExtract include HOST, PATH, QUERY, REF, PROTOCOL, AUTHORITY, FILE, and USERINFO.",
"product_code":"dli",
"title":"parse_url",
"uri":"dli_spark_parse_url.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"163"
},
{
"desc":"This function is used to print the input in a specific format.The return value is of the STRING type.The value is returned after the parameters that filled in Obj are spe",
"product_code":"dli",
"title":"printf",
"uri":"dli_spark_printf.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"164"
},
{
"desc":"This function is used to return the number of substrings that match a specified pattern in the source, starting from the start_position position.The return value is of th",
"product_code":"dli",
"title":"regexp_count",
"uri":"dli_spark_regexp_count.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"165"
},
{
"desc":"This function is used to match the string source based on the pattern grouping rule and return the string content that matches groupid.regexp_extract(string <source>, str",
"product_code":"dli",
"title":"regexp_extract",
"uri":"dli_spark_regexp_extract.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"166"
},
{
"desc":"This function is used to replace the part in a specified string that is the same as the string old with the string new and return the result.If the string has no same cha",
"product_code":"dli",
"title":"replace",
"uri":"dli_spark_replace.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"167"
},
{
"desc":"This function has slight variations in its functionality depending on the version of Spark being used.For Spark 2.4.5 or earlier: Replaces the substring that matches patt",
"product_code":"dli",
"title":"regexp_replace",
"uri":"dli_spark_regexp_replace.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"168"
},
{
"desc":"This function is used to replace the substring that matches pattern for the occurrence time in the source string with the specified string replace_string and return the r",
"product_code":"dli",
"title":"regexp_replace1",
"uri":"dli_spark_regexp_replace1.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"169"
},
{
"desc":"This function is used to return the start or end position of the substring that matches a specified pattern for the occurrence time, starting from start_position in the s",
"product_code":"dli",
"title":"regexp_instr",
"uri":"dli_spark_regexp_instr.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"170"
},
{
"desc":"This function is used to return the substring that matches a specified pattern for the occurrence time, starting from start_position in the string source.The return value",
"product_code":"dli",
"title":"regexp_substr",
"uri":"dli_spark_regexp_substr.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"171"
},
{
"desc":"This function is used to return the string after str is repeated for n times.The return value is of the STRING type.If the value of str is not of the STRING, BIGINT, DOUB",
"product_code":"dli",
"title":"repeat",
"uri":"dli_spark_repeat.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"172"
},
{
"desc":"This function is used to return a string in reverse order.The return value is of the STRING type.If the value of str is not of the STRING, BIGINT, DOUBLE, DECIMAL, or DAT",
"product_code":"dli",
"title":"reverse",
"uri":"dli_spark_reverse.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"173"
},
{
"desc":"This function is used to right pad str1 with str2 to the specified length.The return value is of the STRING type.If the value of length is smaller than the number of digi",
"product_code":"dli",
"title":"rpad",
"uri":"dli_spark_rpad.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"174"
},
{
"desc":"This function is used to remove characters from the right of str.If trimChars is not specified, spaces are removed by default.If trimChars is specified, the function remo",
"product_code":"dli",
"title":"rtrim",
"uri":"dli_spark_rtrim.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"175"
},
{
"desc":"This function is used to return the soundex string from str, for example, soundex('Miller') = M460.The return value is of the STRING type.If the value of str is NULL, NUL",
"product_code":"dli",
"title":"soundex",
"uri":"dli_spark_soundex.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"176"
},
{
"desc":"This function is used to return a specified number of spaces.The return value is of the STRING type.If the value of n is empty, an error is reported.If the value of n is ",
"product_code":"dli",
"title":"space",
"uri":"dli_spark_space.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"177"
},
{
"desc":"This function is used to return the substring of str, starting from start_position and with a length of length.orThe return value is of the STRING type.If the value of st",
"product_code":"dli",
"title":"substr/substring",
"uri":"dli_spark_substr_substring.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"178"
},
{
"desc":"This function is used to truncate the string before the count separator of str. If the value of count is positive, the string is truncated from the left. If the value of ",
"product_code":"dli",
"title":"substring_index",
"uri":"dli_spark_substring_index.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"179"
},
{
"desc":"This function is used to split a specified string based on a specified separator and return a substring from the start to end position.The return value is of the STRING t",
"product_code":"dli",
"title":"split_part",
"uri":"dli_spark_split_part.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"180"
},
{
"desc":"This function is used to translate the input string by replacing the characters or string specified by from with the characters or string specified by to.For example, it ",
"product_code":"dli",
"title":"translate",
"uri":"dli_spark_translate.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"181"
},
{
"desc":"This function is used to remove characters from the left and right of str.If trimChars is not specified, spaces are removed by default.If trimChars is specified, the func",
"product_code":"dli",
"title":"trim",
"uri":"dli_spark_trim.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"182"
},
{
"desc":"This function is used to convert all characters of a string to the upper case.orThe return value is of the STRING type.If the value of the input parameter is not of the S",
"product_code":"dli",
"title":"upper/ucase",
"uri":"dli_spark_upper_ucase.html",
"doc_type":"sqlreference",
"p_code":"143",
"code":"183"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Mathematical Functions",
"uri":"dli_08_0473.html",
"doc_type":"sqlreference",
"p_code":"106",
"code":"184"
},
{
"desc":"Table 1 lists the mathematical functions supported by DLI.",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0065.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"185"
},
{
"desc":"This function is used to calculate the absolute value of an input parameter.The return value is of the DOUBLE or INT type.If the value of a is NULL, NULL is returned.The ",
"product_code":"dli",
"title":"abs",
"uri":"dli_spark_abs.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"186"
},
{
"desc":"This function is used to return the arc cosine value of a given angle a.The return value is of the DOUBLE type. The value ranges from 0 to π.If the value of a is not with",
"product_code":"dli",
"title":"acos",
"uri":"dli_spark_aocs.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"187"
},
{
"desc":"This function is used to return the arc sine value of a given angle a.The return value is of the DOUBLE type. The value ranges from -π/2 to π/2.If the value of a is not w",
"product_code":"dli",
"title":"asin",
"uri":"dli_spark_asin.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"188"
},
{
"desc":"This function is used to return the arc tangent value of a given angle a.The return value is of the DOUBLE type. The value ranges from -π/2 to π/2.If the value of a is no",
"product_code":"dli",
"title":"atan",
"uri":"dli_spark_atan.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"189"
},
{
"desc":"This function is used to return the binary format of a.The return value is of the STRING type.If the value of a is NULL, NULL is returned.The value 1 is returned.The valu",
"product_code":"dli",
"title":"bin",
"uri":"dli_spark_bin.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"190"
},
{
"desc":"This function is used to return a value that is rounded off to d decimal places.The return value is of the DOUBLE type.If the value of a or d is NULL, NULL is returned.Th",
"product_code":"dli",
"title":"bround",
"uri":"dli_spark_bround.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"191"
},
{
"desc":"This function is used to return the cube root of a.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The value 3 is returned.select cbrt(",
"product_code":"dli",
"title":"cbrt",
"uri":"dli_spark_cbrt.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"192"
},
{
"desc":"This function is used to round up a to the nearest integer.The return value is of the DECIMAL type.If the value of a is NULL, NULL is returned.The value 2 is returned.The",
"product_code":"dli",
"title":"ceil",
"uri":"dli_spark_ceil.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"193"
},
{
"desc":"This function is used to convert a number from from_base to to_base.The return value is of the STRING type.If the value of num, from_base, or to_base is NULL, NULL is ret",
"product_code":"dli",
"title":"conv",
"uri":"dli_spark_conv.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"194"
},
{
"desc":"This function is used to calculate the cosine value of a, with input in radians.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The val",
"product_code":"dli",
"title":"cos",
"uri":"dli_spark_cos.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"195"
},
{
"desc":"This function is used to calculate the cotangent value of a, with input in radians.The return value is of the DOUBLE or DECIMAL type.If the value of a is NULL, NULL is re",
"product_code":"dli",
"title":"cot1",
"uri":"dli_spark_cot1.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"196"
},
{
"desc":"This function is used to calculate the angle corresponding to the returned radian.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The v",
"product_code":"dli",
"title":"degrees",
"uri":"dli_spark_degress.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"197"
},
{
"desc":"This function is used to return the value of e.The return value is of the DOUBLE type.The value 2.718281828459045 is returned.select e();",
"product_code":"dli",
"title":"e",
"uri":"dli_spark_e.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"198"
},
{
"desc":"This function is used to return the value of e raised to the power of a.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The value 7.389",
"product_code":"dli",
"title":"exp",
"uri":"dli_spark_exp.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"199"
},
{
"desc":"This function is used to return the factorial of a.The return value is of the BIGINT type.If the value of a is 0, 1 is returned.If the value of a is NULL or outside the r",
"product_code":"dli",
"title":"factorial",
"uri":"dli_spark_factorial.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"200"
},
{
"desc":"This function is used to round down a to the nearest integer.The return value is of the BIGINT type.If the value of a is NULL, NULL is returned.The value 1 is returned.Th",
"product_code":"dli",
"title":"floor",
"uri":"dli_spark_floor.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"201"
},
{
"desc":"This function is used to return the greatest value in a list of values.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The value 4.0 is",
"product_code":"dli",
"title":"greatest",
"uri":"dli_spark_greatest.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"202"
},
{
"desc":"This function is used to convert an integer or character into its hexadecimal representation.The return value is of the STRING type.If the value of a is 0, 0 is returned.",
"product_code":"dli",
"title":"hex",
"uri":"dli_spark_hex.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"203"
},
{
"desc":"This function is used to return the smallest value in a list of values.The return value is of the DOUBLE type.If the value of v1 or v2 is of the STRING type, an error is ",
"product_code":"dli",
"title":"least",
"uri":"dli_spark_least.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"204"
},
{
"desc":"This function is used to return the natural logarithm of a given value.The return value is of the DOUBLE type.If the value of a is negative or 0, NULL is returned.If the ",
"product_code":"dli",
"title":"ln",
"uri":"dli_spark_ln.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"205"
},
{
"desc":"This function is used to return the natural logarithm of a given base and exponent.The return value is of the DOUBLE type.If the value of base or a is NULL, NULL is retur",
"product_code":"dli",
"title":"log",
"uri":"dli_spark_log.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"206"
},
{
"desc":"This function is used to return the natural logarithm of a given value with a base of 10.The return value is of the DOUBLE type.If the value of a is negative, 0, or NULL,",
"product_code":"dli",
"title":"log10",
"uri":"dli_spark_log10.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"207"
},
{
"desc":"This function is used to return the natural logarithm of a given value with a base of 2.The return value is of the DOUBLE type.If the value of a is negative, 0, or NULL, ",
"product_code":"dli",
"title":"log2",
"uri":"dli_spark_log2.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"208"
},
{
"desc":"This function is used to calculate the median of input parameters.The return value is of the DOUBLE or DECIMAL type.If the column name does not exist, an error is reporte",
"product_code":"dli",
"title":"median",
"uri":"dli_spark_median.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"209"
},
{
"desc":"This function is used to return the additive inverse of a.The return value is of the DECIMAL or INT type.If the value of a is NULL, NULL is returned.The value -1 is retur",
"product_code":"dli",
"title":"negative",
"uri":"dli_spark_negative.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"210"
},
{
"desc":"This function is used to return the exact percentile, which is applicable to a small amount of data. It sorts a specified column in ascending order, and then obtains the ",
"product_code":"dli",
"title":"percentlie",
"uri":"dli_spark_percentlie.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"211"
},
{
"desc":"This function is used to return the approximate percentile, which is applicable to a large amount of data. It sorts a specified column in ascending order, and then obtain",
"product_code":"dli",
"title":"percentlie_approx",
"uri":"dli_spark_percentlie_approx.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"212"
},
{
"desc":"This function is used to return the value of π.The return value is of the DOUBLE type.The value 3.141592653589793 is returned.",
"product_code":"dli",
"title":"pi",
"uri":"dli_spark_pi.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"213"
},
{
"desc":"This function is used to return the positive value of the remainder after division of x by y.pmod(INT a, INT b)The return value is of the DECIMAL or INT type.If the value",
"product_code":"dli",
"title":"pmod",
"uri":"dli_spark_pmod.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"214"
},
{
"desc":"This function is used to return the value of a.The return value is of the DECIMAL, DOUBLE, or INT type.If the value of a is NULL, NULL is returned.The value 3 is returned",
"product_code":"dli",
"title":"positive",
"uri":"dli_spark_positive.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"215"
},
{
"desc":"This function is used to calculate and return the pth power of a.The return value is of the DOUBLE type.If the value of a or p is NULL, NULL is returned.The value 16 retu",
"product_code":"dli",
"title":"pow",
"uri":"dli_spark_pow.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"216"
},
{
"desc":"This function is used to return the radian corresponding to an angle.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The value 1.047197",
"product_code":"dli",
"title":"radians",
"uri":"dli_spark_radians.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"217"
},
{
"desc":"This function is used to return an evenly distributed random number that is greater than or equal to 0 and less than 1.The return value is of the DOUBLE type.The value 0.",
"product_code":"dli",
"title":"rand",
"uri":"dli_spark_rand.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"218"
},
{
"desc":"This function is used to calculate the rounded value of a up to d decimal places.The return value is of the DOUBLE type.If the value of d is negative, an error is reporte",
"product_code":"dli",
"title":"round",
"uri":"dli_spark_round.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"219"
},
{
"desc":"This function is used to perform a signed bitwise left shift. It takes the binary number a and shifts it b positions to the left.shiftleft(BIGINT a, BIGINT b)The return v",
"product_code":"dli",
"title":"shiftleft",
"uri":"dli_spark_shiftleft.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"220"
},
{
"desc":"This function is used to perform a signed bitwise right shift. It takes the binary number a and shifts it b positions to the right.The return value is of the INT type.If ",
"product_code":"dli",
"title":"shiftright",
"uri":"dli_spark_shiftright.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"221"
},
{
"desc":"This function is used to perform an unsigned bitwise right shift. It takes the binary number a and shifts it b positions to the right.The return value is of the INT type.",
"product_code":"dli",
"title":"shiftrightunsigned",
"uri":"dli_spark_shiftrightunsigned.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"222"
},
{
"desc":"This function is used to return the positive and negative signs corresponding to a.The return value is of the DOUBLE type.If the value of a is a positive number, 1 is ret",
"product_code":"dli",
"title":"sign",
"uri":"dli_spark_sign.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"223"
},
{
"desc":"This function is used to return the sine value of a, with input in radians.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The value 1 ",
"product_code":"dli",
"title":"sin",
"uri":"dli_spark_sin.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"224"
},
{
"desc":"This function is used to return the square root of a value.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The value 2.8284271247461903",
"product_code":"dli",
"title":"sqrt",
"uri":"dli_spark_sqrt.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"225"
},
{
"desc":"This function is used to return the tangent value of a, with input in radians.The return value is of the DOUBLE type.If the value of a is NULL, NULL is returned.The value",
"product_code":"dli",
"title":"tan",
"uri":"dli_spark_tan.html",
"doc_type":"sqlreference",
"p_code":"184",
"code":"226"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Aggregate Functions",
"uri":"dli_08_0474.html",
"doc_type":"sqlreference",
"p_code":"106",
"code":"227"
},
{
"desc":"Table 1 lists the aggregate functions supported by DLI.",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0068.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"228"
},
{
"desc":"This function is used to return the average value.The return value is of the DOUBLE type.If the value of col is NULL, the column is not involved in calculation.Calculates",
"product_code":"dli",
"title":"avg",
"uri":"dli_spark_avg.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"229"
},
{
"desc":"This function is used to return the correlation coefficient between two columns of numerical values.The return value is of the DOUBLE type.Calculates the correlation coef",
"product_code":"dli",
"title":"corr",
"uri":"dli_spark_corr.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"230"
},
{
"desc":"This function is used to return the number of records.The return value is of the BIGINT type.If the value of colname is NULL, the row is not involved in calculation.Calcu",
"product_code":"dli",
"title":"count",
"uri":"dli_spark_count.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"231"
},
{
"desc":"This function is used to return the covariance between two columns of numerical values.The return value is of the DOUBLE type.Calculates the covariance between the invent",
"product_code":"dli",
"title":"covar_pop",
"uri":"dli_spark_covar_pop.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"232"
},
{
"desc":"This function is used to return the sample covariance between two columns of numerical values.The return value is of the DOUBLE type.Calculates the sample covariance betw",
"product_code":"dli",
"title":"covar_samp",
"uri":"dli_spark_covar_samp.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"233"
},
{
"desc":"This function is used to return the maximum value.The return value is of the DOUBLE type.The return type is the same as the type of col. The return rules are as follows:I",
"product_code":"dli",
"title":"max",
"uri":"dli_spark_max.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"234"
},
{
"desc":"This function is used to return the minimum value.The return value is of the DOUBLE type.The return type is the same as the type of col. The return rules are as follows:I",
"product_code":"dli",
"title":"min",
"uri":"dli_spark_min.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"235"
},
{
"desc":"This function is used to return the numerical value at a certain percentage point within a range of values.The return value is of the DOUBLE type.The value should be betw",
"product_code":"dli",
"title":"percentile",
"uri":"dli_spark_percentile.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"236"
},
{
"desc":"This function is used to approximate the pth percentile (including floating-point numbers) of a numeric column within a group.The return value is of the DOUBLE type.Calcu",
"product_code":"dli",
"title":"percentile_approx",
"uri":"dli_spark_percentile_approx.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"237"
},
{
"desc":"This function is used to return the deviation of a specified column.The return value is of the DOUBLE type.Calculates the deviation of all offering inventories (items). A",
"product_code":"dli",
"title":"stddev_pop",
"uri":"dli_spark_stddev_pop.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"238"
},
{
"desc":"This function is used to return the sample deviation of a specified column.The return value is of the DOUBLE type.Calculates the sample covariance between the inventory (",
"product_code":"dli",
"title":"stddev_samp",
"uri":"dli_spark_stddev_samp.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"239"
},
{
"desc":"This function is used to calculate the total sum.The return value is of the DOUBLE type.If the value of col is NULL, the row is not involved in calculation.Calculates the",
"product_code":"dli",
"title":"sum",
"uri":"dli_spark_sum.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"240"
},
{
"desc":"This function is used to return the variance of a column.The return value is of the DOUBLE type.Calculates the variance of all offering inventories (items). An example co",
"product_code":"dli",
"title":"variance/var_pop",
"uri":"dli_spark_variance_var_pop.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"241"
},
{
"desc":"This function is used to return the sample variance of a specified column.The return value is of the DOUBLE type.Calculates the sample variance of all offering inventorie",
"product_code":"dli",
"title":"var_samp",
"uri":"dli_spark_war_samp.html",
"doc_type":"sqlreference",
"p_code":"227",
"code":"242"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Window Functions",
"uri":"dli_08_0475.html",
"doc_type":"sqlreference",
"p_code":"106",
"code":"243"
},
{
"desc":"Table 1 lists the window functions supported by DLI.",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0069.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"244"
},
{
"desc":"This function is used to return the cumulative distribution, which is equivalent to calculating the proportion of data in the partition that is greater than or equal to, ",
"product_code":"dli",
"title":"cume_dist",
"uri":"dli_spark_cume_dist.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"245"
},
{
"desc":"This function is used to obtain the value of the first data record in the window corresponding to the current row.The restrictions on using window functions are as follow",
"product_code":"dli",
"title":"first_value",
"uri":"dli_spark_first_value.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"246"
},
{
"desc":"This function is used to obtain the value of the last data record in the window corresponding to the current row.The restrictions on using window functions are as follows",
"product_code":"dli",
"title":"last_value",
"uri":"dli_spark_last_value.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"247"
},
{
"desc":"This function is used to return the value of the nth row upwards within a specified window.The restrictions on using window functions are as follows:Window functions can ",
"product_code":"dli",
"title":"lag",
"uri":"dli_spark_lag.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"248"
},
{
"desc":"This function is used to return the value of the nth row downwards within a specified window.The restrictions on using window functions are as follows:Window functions ca",
"product_code":"dli",
"title":"lead",
"uri":"dli_spark_lead.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"249"
},
{
"desc":"This function is used to return the value of the column specified in the ORDER BY clause of a window, expressed as a decimal between 0 and 1. It is calculated as (the ran",
"product_code":"dli",
"title":"percent_rank",
"uri":"dli_spark_percent_rank.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"250"
},
{
"desc":"This function is used to return the rank of a value in a set of values. When multiple values share the same rank, the next rank in the sequence is not consecutive.The res",
"product_code":"dli",
"title":"rank",
"uri":"dli_spark_rank.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"251"
},
{
"desc":"This function is used to return the row number, starting from 1 and increasing incrementally.The restrictions on using window functions are as follows:Window functions ca",
"product_code":"dli",
"title":"row_number",
"uri":"dli_spark_row_number.html",
"doc_type":"sqlreference",
"p_code":"243",
"code":"252"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Other Functions",
"uri":"dli_08_0476.html",
"doc_type":"sqlreference",
"p_code":"106",
"code":"253"
},
{
"desc":"The following table lists the functions provided by DLI, such as decode1, javahash, and max_pt.",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0469.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"254"
},
{
"desc":"This function is used to implement if-then-else branch selection.result and default are return values. These values can be of any data type.If they match, the value of re",
"product_code":"dli",
"title":"decode1",
"uri":"dli_spark_decode1.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"255"
},
{
"desc":"This function is used to return the hash value of a.The return value is of the STRING type.The hash value is returned. If the value of a is null, an error is reported.The",
"product_code":"dli",
"title":"javahash",
"uri":"dli_spark_javahash.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"256"
},
{
"desc":"This function is used to return the name of the largest level-1 partition that contains data in a partitioned table and read the data of this partition.The return value i",
"product_code":"dli",
"title":"max_pt",
"uri":"dli_spark_max_pt.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"257"
},
{
"desc":"This function is used to sort input variables in ascending order and return the value at the position specified by nth.The return value is of the DOUBLE or DECIMAL type.V",
"product_code":"dli",
"title":"ordinal",
"uri":"dli_spark_ordinal.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"258"
},
{
"desc":"This function is used to convert an array split by a fixed separator in a column into multiple rows.All columns used as keys must be placed before the columns to be trans",
"product_code":"dli",
"title":"trans_array",
"uri":"dli_spark_trans_array.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"259"
},
{
"desc":"This function is used to truncate the number value to a specified decimal place.The return value is of the DOUBLE or DECIMAL type.The return rules are as follows:If the n",
"product_code":"dli",
"title":"trunc_numeric",
"uri":"dli_spark_trunc_numeric.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"260"
},
{
"desc":"This function is used to convert a string from the application/x-www-form-urlencoded MIME format to regular characters.The return value is of the STRING type.UTF-8-encode",
"product_code":"dli",
"title":"url_decode",
"uri":"dli_spark_url_decode.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"261"
},
{
"desc":"This function is used to encode a string in the application/x-www-form-urlencoded MIME format.url_encode(string <input>[, string <encoding>])The return value is of the ST",
"product_code":"dli",
"title":"url_encode",
"uri":"dli_spark_url_encode.html",
"doc_type":"sqlreference",
"p_code":"253",
"code":"262"
},
{
"desc":"This statement is a basic query statement and is used to return the query results.The table to be queried must exist. Otherwise, an error is reported.To filter the record",
"product_code":"dli",
"title":"Basic SELECT Statements",
"uri":"dli_08_0150.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"263"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Filtering",
"uri":"dli_08_0151.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"264"
},
{
"desc":"This statement is used to filter the query results using the WHERE clause.All is used to return repeated rows. By default, all repeated rows are returned. It is followed ",
"product_code":"dli",
"title":"WHERE Filtering Clause",
"uri":"dli_08_0152.html",
"doc_type":"sqlreference",
"p_code":"264",
"code":"265"
},
{
"desc":"This statement is used to filter the query results using the HAVING clause.All is used to return repeated rows. By default, all repeated rows are returned. It is followed",
"product_code":"dli",
"title":"HAVING Filtering Clause",
"uri":"dli_08_0153.html",
"doc_type":"sqlreference",
"p_code":"264",
"code":"266"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Sorting",
"uri":"dli_08_0154.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"267"
},
{
"desc":"This statement is used to order the result set of a query by the specified field.ASC/DESC: ASC sorts from the lowest value to the highest value. DESC sorts from the highe",
"product_code":"dli",
"title":"ORDER BY",
"uri":"dli_08_0155.html",
"doc_type":"sqlreference",
"p_code":"267",
"code":"268"
},
{
"desc":"This statement is used to achieve the partial sorting of tables according to fields.ASC/DESC: ASC sorts from the lowest value to the highest value. DESC sorts from the hi",
"product_code":"dli",
"title":"SORT BY",
"uri":"dli_08_0156.html",
"doc_type":"sqlreference",
"p_code":"267",
"code":"269"
},
{
"desc":"This statement is used to bucket a table and sort the table within buckets.CLUSTER BY: Buckets are created based on specified fields. Single fields and multiple fields ar",
"product_code":"dli",
"title":"CLUSTER BY",
"uri":"dli_08_0157.html",
"doc_type":"sqlreference",
"p_code":"267",
"code":"270"
},
{
"desc":"This statement is used to bucket a table according to the field.DISTRIBUTE BY: Buckets are created based on specified fields. A single field or multiple fields are suppor",
"product_code":"dli",
"title":"DISTRIBUTE BY",
"uri":"dli_08_0158.html",
"doc_type":"sqlreference",
"p_code":"267",
"code":"271"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Grouping",
"uri":"dli_08_0159.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"272"
},
{
"desc":"This statement is used to group a table based on columns.Column-based GROUP BY can be categorized into single-column GROUP BY and multi-column GROUP BY.Single-column GROU",
"product_code":"dli",
"title":"Column-Based GROUP BY",
"uri":"dli_08_0160.html",
"doc_type":"sqlreference",
"p_code":"272",
"code":"273"
},
{
"desc":"This statement is used to group a table according to expressions.The groupby_expression can contain a single field or multiple fields, and also can call aggregate functio",
"product_code":"dli",
"title":"Expression-Based GROUP BY",
"uri":"dli_08_0161.html",
"doc_type":"sqlreference",
"p_code":"272",
"code":"274"
},
{
"desc":"This statement filters a table after grouping it using the HAVING clause.The groupby_expression can contain a single field or multiple fields, and can also call aggregate",
"product_code":"dli",
"title":"GROUP BY Using HAVING",
"uri":"dli_08_0162.html",
"doc_type":"sqlreference",
"p_code":"272",
"code":"275"
},
{
"desc":"This statement is used to generate the aggregate row, super-aggregate row, and the total row. The statement can achieve multi-layer statistics from right to left and disp",
"product_code":"dli",
"title":"ROLLUP",
"uri":"dli_08_0163.html",
"doc_type":"sqlreference",
"p_code":"272",
"code":"276"
},
{
"desc":"This statement is used to generate the cross-table row and achieve the cross-statistics of the GROUP BY field.GROUPING SETS is the expansion of GROUP BY. For example:SELE",
"product_code":"dli",
"title":"GROUPING SETS",
"uri":"dli_08_0164.html",
"doc_type":"sqlreference",
"p_code":"272",
"code":"277"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"JOIN",
"uri":"dli_08_0165.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"278"
},
{
"desc":"This statement is used to join and return the rows that meet the JOIN conditions from two tables as the result set.JOIN/INNER JOIN: Only the records that meet the JOIN co",
"product_code":"dli",
"title":"INNER JOIN",
"uri":"dli_08_0166.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"279"
},
{
"desc":"Join the left table with the right table and return all joined records of the left table. If no joined record is found, NULL will be returned.LEFT OUTER JOIN: Returns all",
"product_code":"dli",
"title":"LEFT OUTER JOIN",
"uri":"dli_08_0167.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"280"
},
{
"desc":"Match the right table with the left table and return all matched records of the right table. If no matched record is found, NULL will be returned.RIGHT OUTER JOIN: Return",
"product_code":"dli",
"title":"RIGHT OUTER JOIN",
"uri":"dli_08_0168.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"281"
},
{
"desc":"Join all records from the right table and the left table and return all joined records. If no joined record is found, NULL will be returned.FULL OUTER JOIN: Matches all r",
"product_code":"dli",
"title":"FULL OUTER JOIN",
"uri":"dli_08_0169.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"282"
},
{
"desc":"This statement has the same function as INNER JOIN, that is, the result set that meet the WHERE condition is returned. However, IMPLICIT JOIN does not use the condition s",
"product_code":"dli",
"title":"IMPLICIT JOIN",
"uri":"dli_08_0170.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"283"
},
{
"desc":"Cartesian JOIN joins each record of table A with all records in table B. For example, if there are m records in table A and n records in table B, m x n records will be ge",
"product_code":"dli",
"title":"Cartesian JOIN",
"uri":"dli_08_0171.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"284"
},
{
"desc":"This statement is used to query the records that meet the JOIN condition from the left table.LEFT SEMI JOIN: Indicates to only return the records from the left table. LEF",
"product_code":"dli",
"title":"LEFT SEMI JOIN",
"uri":"dli_08_0172.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"285"
},
{
"desc":"This statement is used to join multiple tables using unequal values and return the result set that meet the condition.The non_equi_join_condition is similar to join_condi",
"product_code":"dli",
"title":"NON-EQUIJOIN",
"uri":"dli_08_0173.html",
"doc_type":"sqlreference",
"p_code":"278",
"code":"286"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Subquery",
"uri":"dli_08_0174.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"287"
},
{
"desc":"Subqueries are nested in the WHERE clause, and the subquery result is used as the filtering condition.All is used to return repeated rows. By default, all repeated rows a",
"product_code":"dli",
"title":"Subquery Nested by WHERE",
"uri":"dli_08_0175.html",
"doc_type":"sqlreference",
"p_code":"287",
"code":"288"
},
{
"desc":"This statement is used to nest subquery by FROM and use the subquery results as the data source of the external SELECT statement.All is used to return repeated rows. By d",
"product_code":"dli",
"title":"Subquery Nested by FROM",
"uri":"dli_08_0176.html",
"doc_type":"sqlreference",
"p_code":"287",
"code":"289"
},
{
"desc":"This statement is used to embed a subquery in the HAVING clause. The subquery result is used as a part of the HAVING clause.All is used to return repeated rows. By defaul",
"product_code":"dli",
"title":"Subquery Nested by HAVING",
"uri":"dli_08_0177.html",
"doc_type":"sqlreference",
"p_code":"287",
"code":"290"
},
{
"desc":"This statement is used to nest queries in the subquery.All is used to return repeated rows. By default, all repeated rows are returned. It is followed by asterisks (*) on",
"product_code":"dli",
"title":"Multi-Layer Nested Subquery",
"uri":"dli_08_0178.html",
"doc_type":"sqlreference",
"p_code":"287",
"code":"291"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Alias",
"uri":"dli_08_0179.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"292"
},
{
"desc":"This statement is used to specify an alias for a table or the subquery result.table_reference: Can be a table, view, or subquery.As: Is used to connect to table_reference",
"product_code":"dli",
"title":"AS for Table",
"uri":"dli_08_0180.html",
"doc_type":"sqlreference",
"p_code":"292",
"code":"293"
},
{
"desc":"This statement is used to specify an alias for a column.alias: gives an alias for the attr_expr field.AS: Whether to add AS does not affect the result.The to-be-queried t",
"product_code":"dli",
"title":"AS for Column",
"uri":"dli_08_0181.html",
"doc_type":"sqlreference",
"p_code":"292",
"code":"294"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Set Operations",
"uri":"dli_08_0182.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"295"
},
{
"desc":"This statement is used to return the union set of multiple query results.UNION: The set operation is used to join the head and tail of a table based on certain conditions",
"product_code":"dli",
"title":"UNION",
"uri":"dli_08_0183.html",
"doc_type":"sqlreference",
"p_code":"295",
"code":"296"
},
{
"desc":"This statement is used to return the intersection set of multiple query results.INTERSECT returns the intersection of multiple query results. The number of columns return",
"product_code":"dli",
"title":"INTERSECT",
"uri":"dli_08_0184.html",
"doc_type":"sqlreference",
"p_code":"295",
"code":"297"
},
{
"desc":"This statement is used to return the difference set of two query results.EXCEPT minus the sets. A EXCEPT B indicates to remove the records that exist in both A and B from",
"product_code":"dli",
"title":"EXCEPT",
"uri":"dli_08_0185.html",
"doc_type":"sqlreference",
"p_code":"295",
"code":"298"
},
{
"desc":"This statement is used to define the common table expression (CTE) using WITH...AS to simplify the query and make the result easier to read and maintain.cte_name: Name of",
"product_code":"dli",
"title":"WITH...AS",
"uri":"dli_08_0186.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"299"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"CASE...WHEN",
"uri":"dli_08_0187.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"300"
},
{
"desc":"This statement is used to display result_expression according to the joined results of input_expression and when_expression.CASE: Subquery is supported in basic CASE stat",
"product_code":"dli",
"title":"Basic CASE Statement",
"uri":"dli_08_0188.html",
"doc_type":"sqlreference",
"p_code":"300",
"code":"301"
},
{
"desc":"This statement is used to obtain the value of boolean_expression for each WHEN statement in a specified order. Then return the first result_expression with the value TRUE",
"product_code":"dli",
"title":"CASE Query Statement",
"uri":"dli_08_0189.html",
"doc_type":"sqlreference",
"p_code":"300",
"code":"302"
},
{
"desc":"This statement is used together with the window function. The OVER statement is used to group data and sort the data within the group. The window function is used to gene",
"product_code":"dli",
"title":"OVER Clause",
"uri":"dli_08_0190.html",
"doc_type":"sqlreference",
"p_code":"1",
"code":"303"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Flink OpenSource SQL 1.12 Syntax Reference",
"uri":"dli_08_0370.html",
"doc_type":"sqlreference",
"p_code":"",
"code":"304"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Constraints and Definitions",
"uri":"dli_08_0371.html",
"doc_type":"sqlreference",
"p_code":"304",
"code":"305"
},
{
"desc":"STRING, BOOLEAN, BYTES, DECIMAL, TINYINT, SMALLINT, INTEGER, BIGINT, FLOAT, DOUBLE, DATE, TIME, TIMESTAMP, TIMESTAMP WITH LOCAL TIME ZONE, INTERVAL, ARRAY, MULTISET, MAP,",
"product_code":"dli",
"title":"Supported Data Types",
"uri":"dli_08_0372.html",
"doc_type":"sqlreference",
"p_code":"305",
"code":"306"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Syntax",
"uri":"dli_08_0373.html",
"doc_type":"sqlreference",
"p_code":"305",
"code":"307"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Data Definition Language (DDL)",
"uri":"dli_08_0374.html",
"doc_type":"sqlreference",
"p_code":"307",
"code":"308"
},
{
"desc":"Create a table with a specified name.COMPUTED COLUMNA computed column is a virtual column generated using column_name AS computed_column_expression. A computed column eva",
"product_code":"dli",
"title":"CREATE TABLE",
"uri":"dli_08_0375.html",
"doc_type":"sqlreference",
"p_code":"308",
"code":"309"
},
{
"desc":"Create a view with multiple layers nested in it to simplify the development process.IF NOT EXISTSIf the view already exists, nothing happens.Create a view named viewName.",
"product_code":"dli",
"title":"CREATE VIEW",
"uri":"dli_08_0376.html",
"doc_type":"sqlreference",
"p_code":"308",
"code":"310"
},
{
"desc":"Create a user-defined function.For details about how to create a user-defined function, see User-Defined Functions (UDFs).IF NOT EXISTSIf the function already exists, not",
"product_code":"dli",
"title":"CREATE FUNCTION",
"uri":"dli_08_0377.html",
"doc_type":"sqlreference",
"p_code":"308",
"code":"311"
},
{
"desc":"SyntaxPrecautionsFlink SQL uses a lexical policy for identifier (table, attribute, function names) similar to Java:The case of identifiers is preserved whether they are q",
"product_code":"dli",
"title":"Data Manipulation Language (DML)",
"uri":"dli_08_0378.html",
"doc_type":"sqlreference",
"p_code":"307",
"code":"312"
},
{
"desc":"This section describes the Flink open source SQL 1.12 syntax supported by DLI. For details about the parameters and examples, see the syntax description.",
"product_code":"dli",
"title":"Overview",
"uri":"dli_08_0379.html",
"doc_type":"sqlreference",
"p_code":"304",
"code":"313"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"DDL Syntax",
"uri":"dli_08_0380.html",
"doc_type":"sqlreference",
"p_code":"304",
"code":"314"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating Source Tables",
"uri":"dli_08_0381.html",
"doc_type":"sqlreference",
"p_code":"314",
"code":"315"
},
{
"desc":"DataGen is used to generate random data for debugging and testing.NoneWhen you create a DataGen table, the table field type cannot be Array, Map, or Row. You can use COMP",
"product_code":"dli",
"title":"DataGen Source Table",
"uri":"dli_08_0382.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"316"
},
{
"desc":"DLI reads data of Flink jobs from GaussDB(DWS). GaussDB(DWS) database kernel is compliant with PostgreSQL. The PostgreSQL database can store data of more complex types an",
"product_code":"dli",
"title":"GaussDB(DWS) Source Table",
"uri":"dli_08_0383.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"317"
},
{
"desc":"Create a source stream to obtain data from HBase as input for jobs. HBase is a column-oriented distributed cloud storage system that features enhanced reliability, excell",
"product_code":"dli",
"title":"HBase Source Table",
"uri":"dli_08_0384.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"318"
},
{
"desc":"The JDBC connector is a Flink's built-in connector to read data from a database.An enhanced datasource connection with the instances has been established, so that you can",
"product_code":"dli",
"title":"JDBC Source Table",
"uri":"dli_08_0385.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"319"
},
{
"desc":"Create a source stream to obtain data from Kafka as input data for jobs.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscripti",
"product_code":"dli",
"title":"Kafka Source Table",
"uri":"dli_08_0386.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"320"
},
{
"desc":"The MySQL CDC source table, that is, the MySQL streaming source table, reads all historical data in the database first and then smoothly switches data read to the Binlog ",
"product_code":"dli",
"title":"MySQL CDC Source Table",
"uri":"dli_08_0387.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"321"
},
{
"desc":"The Postgres CDC source table, that is, Postgres streaming source table, is used to read the full snapshot data and changed data of the PostgreSQL database in sequence. T",
"product_code":"dli",
"title":"Postgres CDC Source Table",
"uri":"dli_08_0388.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"322"
},
{
"desc":"Create a source stream to obtain data from Redis as input for jobs.An enhanced datasource connection has been created for DLI to connect to the Redis database, so that yo",
"product_code":"dli",
"title":"Redis Source Table",
"uri":"dli_08_0389.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"323"
},
{
"desc":"Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscription system. It delivers high throughput and built-in partitions and provi",
"product_code":"dli",
"title":"Upsert Kafka Source Table",
"uri":"dli_08_0390.html",
"doc_type":"sqlreference",
"p_code":"315",
"code":"324"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating Result Tables",
"uri":"dli_08_0391.html",
"doc_type":"sqlreference",
"p_code":"314",
"code":"325"
},
{
"desc":"The BlackHole connector allows for swallowing all input records. It is designed for high-performance testing and UDF output. It is not a substantive sink. The BlackHole r",
"product_code":"dli",
"title":"BlackHole Result Table",
"uri":"dli_08_0392.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"326"
},
{
"desc":"DLI can output Flink job data to the ClickHouse database. ClickHouse is a column-based database oriented to online analysis and processing. It supports SQL query and prov",
"product_code":"dli",
"title":"ClickHouse Result Table",
"uri":"dli_08_0393.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"327"
},
{
"desc":"DLI outputs the Flink job output data to GaussDB(DWS). GaussDB(DWS) database kernel is compliant with PostgreSQL. The PostgreSQL database can store data of more complex t",
"product_code":"dli",
"title":"GaussDB(DWS) Result Table",
"uri":"dli_08_0394.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"328"
},
{
"desc":"DLI outputs Flink job output data to Elasticsearch of Cloud Search Service (CSS). Elasticsearch is a popular enterprise-class Lucene-powered search server and provides th",
"product_code":"dli",
"title":"Elasticsearch Result Table",
"uri":"dli_08_0395.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"329"
},
{
"desc":"DLI outputs the job data to HBase. HBase is a column-oriented distributed cloud storage system that features enhanced reliability, excellent performance, and elastic scal",
"product_code":"dli",
"title":"HBase Result Table",
"uri":"dli_08_0396.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"330"
},
{
"desc":"DLI outputs the Flink job output data to RDS through the JDBC result table.An enhanced datasource connection with the instances has been established, so that you can conf",
"product_code":"dli",
"title":"JDBC Result Table",
"uri":"dli_08_0397.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"331"
},
{
"desc":"DLI outputs the Flink job output data to Kafka through the Kafka result table.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subs",
"product_code":"dli",
"title":"Kafka Result Table",
"uri":"dli_08_0398.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"332"
},
{
"desc":"The Print connector is used to print output data to the error file or TaskManager file, making it easier for you to view the result in code debugging.NoneThe Print result",
"product_code":"dli",
"title":"Print Result Table",
"uri":"dli_08_0399.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"333"
},
{
"desc":"DLI outputs the Flink job output data to Redis. Redis is a key-value storage system that supports multiple types of data structures. It can be used in scenarios such as c",
"product_code":"dli",
"title":"Redis Result Table",
"uri":"dli_08_0400.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"334"
},
{
"desc":"Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscription system. It delivers high throughput and built-in partitions and provi",
"product_code":"dli",
"title":"Upsert Kafka Result Table",
"uri":"dli_08_0401.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"335"
},
{
"desc":"The FileSystem result (sink) table is used to export data to the HDFS or OBS file system. It is applicable to scenarios such as data dumping, big data analysis, data back",
"product_code":"dli",
"title":"FileSystem Result Table",
"uri":"dli_08_0439.html",
"doc_type":"sqlreference",
"p_code":"325",
"code":"336"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating Dimension Tables",
"uri":"dli_08_0402.html",
"doc_type":"sqlreference",
"p_code":"314",
"code":"337"
},
{
"desc":"Create a GaussDB(DWS) table to connect to source streams for wide table generation.Ensure that you have created a GaussDB(DWS) cluster using your account.A DWS database t",
"product_code":"dli",
"title":"GaussDB(DWS) Dimension Table",
"uri":"dli_08_0403.html",
"doc_type":"sqlreference",
"p_code":"337",
"code":"338"
},
{
"desc":"Create a Hbase dimension table to connect to the source streams for wide table generation.An enhanced datasource connection has been created for DLI to connect to HBase, ",
"product_code":"dli",
"title":"HBase Dimension Table",
"uri":"dli_08_0404.html",
"doc_type":"sqlreference",
"p_code":"337",
"code":"339"
},
{
"desc":"Create a JDBC dimension table to connect to the source stream.You have created a JDBC instance for your account.When you create a Flink OpenSource SQL job, set Flink Vers",
"product_code":"dli",
"title":"JDBC Dimension Table",
"uri":"dli_08_0405.html",
"doc_type":"sqlreference",
"p_code":"337",
"code":"340"
},
{
"desc":"Create a Redis table to connect to source streams for wide table generation.An enhanced datasource connection with Redis has been established, so that you can configure s",
"product_code":"dli",
"title":"Redis Dimension Table",
"uri":"dli_08_0406.html",
"doc_type":"sqlreference",
"p_code":"337",
"code":"341"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Format",
"uri":"dli_08_0407.html",
"doc_type":"sqlreference",
"p_code":"314",
"code":"342"
},
{
"desc":"Apache Avro is supported for you to read and write Avro data based on an Avro schema with Flink. The Avro schema is derived from the table schema.KafkaUpsert KafkaCurrent",
"product_code":"dli",
"title":"Avro",
"uri":"dli_08_0408.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"343"
},
{
"desc":"Canal is a Changelog Data Capture (CDC) tool that can stream changes in real-time from MySQL into other systems. Canal provides a unified format schema for changelog and ",
"product_code":"dli",
"title":"Canal",
"uri":"dli_08_0409.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"344"
},
{
"desc":"The Avro Schema Registry (avro-confluent) format allows you to read records that were serialized by the io.confluent.kafka.serializers.KafkaAvroSerializer and to write re",
"product_code":"dli",
"title":"Confluent Avro",
"uri":"dli_08_0410.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"345"
},
{
"desc":"The CSV format allows you to read and write CSV data based on a CSV schema. Currently, the CSV schema is derived from table schema.KafkaUpsert KafkaUse Kafka to send data",
"product_code":"dli",
"title":"CSV",
"uri":"dli_08_0411.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"346"
},
{
"desc":"Debezium is a Changelog Data Capture (CDC) tool that can stream changes in real-time from other databases into Kafka. Debezium provides a unified format schema for change",
"product_code":"dli",
"title":"Debezium",
"uri":"dli_08_0412.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"347"
},
{
"desc":"The JSON format allows you to read and write JSON data based on a JSON schema. Currently, the JSON schema is derived from table schema.KafkaUpsert KafkaElasticsearchIn th",
"product_code":"dli",
"title":"JSON",
"uri":"dli_08_0413.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"348"
},
{
"desc":"Flink supports to interpret Maxwell JSON messages as INSERT/UPDATE/DELETE messages into Flink SQL system. This is useful in many cases to leverage this feature,such as:Sy",
"product_code":"dli",
"title":"Maxwell",
"uri":"dli_08_0414.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"349"
},
{
"desc":"The raw format allows you to read and write raw (byte based) values as a single column.Note: This format encodes null values as null of the byte[] type. This may have lim",
"product_code":"dli",
"title":"Raw",
"uri":"dli_08_0415.html",
"doc_type":"sqlreference",
"p_code":"342",
"code":"350"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"DML Snytax",
"uri":"dli_08_0416.html",
"doc_type":"sqlreference",
"p_code":"304",
"code":"351"
},
{
"desc":"SyntaxDescriptionSELECT is used to select data from a table.ALL indicates that all results are returned.DISTINCT indicates that the duplicated results are removed.Precaut",
"product_code":"dli",
"title":"SELECT",
"uri":"dli_08_0417.html",
"doc_type":"sqlreference",
"p_code":"351",
"code":"352"
},
{
"desc":"SyntaxDescriptionUNION is used to return the union set of multiple query results.INTERSECT is used to return the intersection of multiple query results.EXCEPT is used to ",
"product_code":"dli",
"title":"Set Operations",
"uri":"dli_08_0418.html",
"doc_type":"sqlreference",
"p_code":"351",
"code":"353"
},
{
"desc":"DescriptionGroup Window is defined in GROUP BY. One record is generated from each group. Group Window involves the following functions:Array functionsArray functionsGroup",
"product_code":"dli",
"title":"Window",
"uri":"dli_08_0419.html",
"doc_type":"sqlreference",
"p_code":"351",
"code":"354"
},
{
"desc":"SyntaxPrecautionsCurrently, only equi-joins are supported, for example, joins that have at least one conjunctive condition with an equality predicate. Arbitrary cross or ",
"product_code":"dli",
"title":"JOIN",
"uri":"dli_08_0420.html",
"doc_type":"sqlreference",
"p_code":"351",
"code":"355"
},
{
"desc":"FunctionThis clause is used to sort data in ascending order on a time attribute.PrecautionsCurrently, only sorting by time attribute is supported.ExampleSort data in asce",
"product_code":"dli",
"title":"OrderBy & Limit",
"uri":"dli_08_0421.html",
"doc_type":"sqlreference",
"p_code":"351",
"code":"356"
},
{
"desc":"Top-N queries ask for the N smallest or largest values ordered by columns. Both smallest and largest values sets are considered Top-N queries. Top-N queries are useful in",
"product_code":"dli",
"title":"Top-N",
"uri":"dli_08_0422.html",
"doc_type":"sqlreference",
"p_code":"351",
"code":"357"
},
{
"desc":"Deduplication removes rows that duplicate over a set of columns, keeping only the first one or the last one.ROW_NUMBER(): Assigns a unique, sequential number to each row,",
"product_code":"dli",
"title":"Deduplication",
"uri":"dli_08_0423.html",
"doc_type":"sqlreference",
"p_code":"351",
"code":"358"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Functions",
"uri":"dli_08_0424.html",
"doc_type":"sqlreference",
"p_code":"304",
"code":"359"
},
{
"desc":"DLI supports the following three types of user-defined functions (UDFs):Regular UDF: takes in one or more input parameters and returns a single result.User-defined table-",
"product_code":"dli",
"title":"User-Defined Functions (UDFs)",
"uri":"dli_08_0425.html",
"doc_type":"sqlreference",
"p_code":"359",
"code":"360"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Built-In Functions",
"uri":"dli_08_0426.html",
"doc_type":"sqlreference",
"p_code":"359",
"code":"361"
},
{
"desc":"All data types can be compared by using relational operators and the result is returned as a BOOLEAN value.Relationship operators are binary operators. Two compared data ",
"product_code":"dli",
"title":"Mathematical Operation Functions",
"uri":"dli_08_0427.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"362"
},
{
"desc":"SyntaxExampleTest input data.Test the data source kafka. The message content is as follows:{name:James,age:24,sex:male,grade:{math:95,science:[80,85],english:100}}\n{name:",
"product_code":"dli",
"title":"String Functions",
"uri":"dli_08_0428.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"363"
},
{
"desc":"Table 1 lists the time functions supported by Flink OpenSource SQL.FunctionReturns a SQL date parsed from string in form of yyyy-MM-dd.Returns a SQL date parsed from stri",
"product_code":"dli",
"title":"Temporal Functions",
"uri":"dli_08_0429.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"364"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Conditional Functions",
"uri":"dli_08_0430.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"365"
},
{
"desc":"This function is used to forcibly convert types.If the input is NULL, NULL is returned.The cast function does not support converting a string to the JSON format.The follo",
"product_code":"dli",
"title":"Type Conversion Functions",
"uri":"dli_08_0431.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"366"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Collection Functions",
"uri":"dli_08_0432.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"367"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Value Construction Functions",
"uri":"dli_08_0433.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"368"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Value Access Functions",
"uri":"dli_08_0434.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"369"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Hash Functions",
"uri":"dli_08_0435.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"370"
},
{
"desc":"An aggregate function performs a calculation operation on a set of input values and returns a value. For example, the COUNT function counts the number of rows retrieved b",
"product_code":"dli",
"title":"Aggregate Functions",
"uri":"dli_08_0436.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"371"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Table-Valued Functions",
"uri":"dli_08_0437.html",
"doc_type":"sqlreference",
"p_code":"361",
"code":"372"
},
{
"desc":"The string_split function splits a target string into substrings based on the specified separator and returns a substring list.Create a Flink OpenSource SQL job by referr",
"product_code":"dli",
"title":"string_split",
"uri":"dli_08_0438.html",
"doc_type":"sqlreference",
"p_code":"372",
"code":"373"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Flink Opensource SQL 1.10 Syntax Reference",
"uri":"dli_08_0289.html",
"doc_type":"sqlreference",
"p_code":"",
"code":"374"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Constraints and Definitions",
"uri":"dli_08_0290.html",
"doc_type":"sqlreference",
"p_code":"374",
"code":"375"
},
{
"desc":"STRING, BOOLEAN, BYTES, DECIMAL, TINYINT, SMALLINT, INTEGER, BIGINT, FLOAT, DOUBLE, DATE, TIME, TIMESTAMP, TIMESTAMP WITH LOCAL TIME ZONE, INTERVAL, ARRAY, MULTISET, MAP,",
"product_code":"dli",
"title":"Supported Data Types",
"uri":"dli_08_0291.html",
"doc_type":"sqlreference",
"p_code":"375",
"code":"376"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Syntax Definition",
"uri":"dli_08_0292.html",
"doc_type":"sqlreference",
"p_code":"375",
"code":"377"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Data Definition Language (DDL)",
"uri":"dli_08_0293.html",
"doc_type":"sqlreference",
"p_code":"377",
"code":"378"
},
{
"desc":"This clause is used to create a table with a specified name.COMPUTED COLUMNA computed column is a virtual column generated using column_name AS computed_column_expression",
"product_code":"dli",
"title":"CREATE TABLE",
"uri":"dli_08_0294.html",
"doc_type":"sqlreference",
"p_code":"378",
"code":"379"
},
{
"desc":"Create a view with multiple layers nested in it to simplify the development process.IF NOT EXISTSIf the view already exists, nothing happens.Create a view named viewName.",
"product_code":"dli",
"title":"CREATE VIEW",
"uri":"dli_08_0295.html",
"doc_type":"sqlreference",
"p_code":"378",
"code":"380"
},
{
"desc":"Create a user-defined function.IF NOT EXISTSIf the function already exists, nothing happens.LANGUAGE JAVA|SCALALanguage tag is used to instruct Flink runtime how to execu",
"product_code":"dli",
"title":"CREATE FUNCTION",
"uri":"dli_08_0296.html",
"doc_type":"sqlreference",
"p_code":"378",
"code":"381"
},
{
"desc":"SyntaxPrecautionsFlink SQL uses a lexical policy for identifier (table, attribute, function names) similar to Java:The case of identifiers is preserved whether they are q",
"product_code":"dli",
"title":"Data Manipulation Language (DML)",
"uri":"dli_08_0297.html",
"doc_type":"sqlreference",
"p_code":"377",
"code":"382"
},
{
"desc":"This section describes the Flink OpenSource SQL syntax supported by DLI. For details about the parameters and examples, see the syntax description.",
"product_code":"dli",
"title":"Flink OpenSource SQL 1.10 Syntax",
"uri":"dli_08_0298.html",
"doc_type":"sqlreference",
"p_code":"374",
"code":"383"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Data Definition Language (DDL)",
"uri":"dli_08_0299.html",
"doc_type":"sqlreference",
"p_code":"374",
"code":"384"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Source Table",
"uri":"dli_08_0300.html",
"doc_type":"sqlreference",
"p_code":"384",
"code":"385"
},
{
"desc":"Create a source stream to obtain data from Kafka as input data for jobs.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscripti",
"product_code":"dli",
"title":"Kafka Source Table",
"uri":"dli_08_0301.html",
"doc_type":"sqlreference",
"p_code":"385",
"code":"386"
},
{
"desc":"Create a source stream to read data from DIS. DIS accesses user data and Flink job reads data from the DIS stream as input data for jobs. Flink jobs can quickly remove da",
"product_code":"dli",
"title":"DIS Source Table",
"uri":"dli_08_0302.html",
"doc_type":"sqlreference",
"p_code":"385",
"code":"387"
},
{
"desc":"The JDBC connector is a Flink's built-in connector to read data from a database.An enhanced datasource connection with the database has been established, so that you can ",
"product_code":"dli",
"title":"JDBC Source Table",
"uri":"dli_08_0303.html",
"doc_type":"sqlreference",
"p_code":"385",
"code":"388"
},
{
"desc":"DLI reads data of Flink jobs from GaussDB(DWS). GaussDB(DWS) database kernel is compliant with PostgreSQL. The PostgreSQL database can store data of more complex types an",
"product_code":"dli",
"title":"GaussDB(DWS) Source Table",
"uri":"dli_08_0304.html",
"doc_type":"sqlreference",
"p_code":"385",
"code":"389"
},
{
"desc":"Create a source stream to obtain data from Redis as input for jobs.An enhanced datasource connection with Redis has been established, so that you can configure security g",
"product_code":"dli",
"title":"Redis Source Table",
"uri":"dli_08_0305.html",
"doc_type":"sqlreference",
"p_code":"385",
"code":"390"
},
{
"desc":"Create a source stream to obtain data from HBase as input for jobs. HBase is a column-oriented distributed cloud storage system that features enhanced reliability, excell",
"product_code":"dli",
"title":"HBase Source Table",
"uri":"dli_08_0306.html",
"doc_type":"sqlreference",
"p_code":"385",
"code":"391"
},
{
"desc":"You can call APIs to obtain data from the cloud ecosystem or an open source ecosystem and use the obtained data as input of Flink jobs.The customized source class needs t",
"product_code":"dli",
"title":"userDefined Source Table",
"uri":"dli_08_0358.html",
"doc_type":"sqlreference",
"p_code":"385",
"code":"392"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Result Table",
"uri":"dli_08_0307.html",
"doc_type":"sqlreference",
"p_code":"384",
"code":"393"
},
{
"desc":"DLI exports Flink job data to ClickHouse result tables.ClickHouse is a column-based database oriented to online analysis and processing. It supports SQL query and provide",
"product_code":"dli",
"title":"ClickHouse Result Table",
"uri":"dli_08_0344.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"394"
},
{
"desc":"DLI exports the output data of the Flink job to Kafka.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscription system. It deli",
"product_code":"dli",
"title":"Kafka Result Table",
"uri":"dli_08_0308.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"395"
},
{
"desc":"DLI exports the output data of the Flink job to Kafka in upsert mode.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscription ",
"product_code":"dli",
"title":"Upsert Kafka Result Table",
"uri":"dli_08_0309.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"396"
},
{
"desc":"DLI writes the Flink job output data into DIS. The data is filtered and imported to the DIS stream for future processing.DIS addresses the challenge of transmitting data ",
"product_code":"dli",
"title":"DIS Result Table",
"uri":"dli_08_0310.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"397"
},
{
"desc":"DLI exports the output data of the Flink job to RDS.An enhanced datasource connection with the database has been established, so that you can configure security group rul",
"product_code":"dli",
"title":"JDBC Result Table",
"uri":"dli_08_0311.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"398"
},
{
"desc":"DLI outputs the Flink job output data to GaussDB(DWS). GaussDB(DWS) database kernel is compliant with PostgreSQL. The PostgreSQL database can store data of more complex t",
"product_code":"dli",
"title":"GaussDB(DWS) Result Table",
"uri":"dli_08_0312.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"399"
},
{
"desc":"DLI exports the output data of the Flink job to Redis. Redis is a storage system that supports multiple types of data structures such as key-value. It can be used in scen",
"product_code":"dli",
"title":"Redis Result Table",
"uri":"dli_08_0313.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"400"
},
{
"desc":"DLI exports Flink job output data to SMN.SMN provides reliable and flexible large-scale message notification services to DLI. It significantly simplifies system coupling ",
"product_code":"dli",
"title":"SMN Result Table",
"uri":"dli_08_0314.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"401"
},
{
"desc":"DLI outputs the job data to HBase. HBase is a column-oriented distributed cloud storage system that features enhanced reliability, excellent performance, and elastic scal",
"product_code":"dli",
"title":"HBase Result Table",
"uri":"dli_08_0315.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"402"
},
{
"desc":"DLI exports Flink job output data to Elasticsearch of Cloud Search Service (CSS). Elasticsearch is a popular enterprise-class Lucene-powered search server and provides th",
"product_code":"dli",
"title":"Elasticsearch Result Table",
"uri":"dli_08_0316.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"403"
},
{
"desc":"OpenTSDB is a distributed, scalable time series database based on HBase. OpenTSDB is designed to collect monitoring information of a large-scale cluster and query data in",
"product_code":"dli",
"title":"OpenTSDB Result Table",
"uri":"dli_08_0348.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"404"
},
{
"desc":"Write your Java code to insert the processed data into a specified database supported by your cloud service.Implement the custom sink class :The custom sink class is inhe",
"product_code":"dli",
"title":"User-defined Result Table",
"uri":"dli_08_0347.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"405"
},
{
"desc":"The print connector exports your data output to the error file or the out file of TaskManager. It is mainly used for code debugging and output viewing.Read data from Kafk",
"product_code":"dli",
"title":"Print Result Table",
"uri":"dli_08_0345.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"406"
},
{
"desc":"You can create a file system result table to export data to a file system such as HDFS or OBS. After the data is generated, a non-DLI table can be created directly accord",
"product_code":"dli",
"title":"File System Result Table",
"uri":"dli_08_0346.html",
"doc_type":"sqlreference",
"p_code":"393",
"code":"407"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Dimension Table",
"uri":"dli_08_0317.html",
"doc_type":"sqlreference",
"p_code":"384",
"code":"408"
},
{
"desc":"Create a JDBC dimension table to connect to the source stream.You have created a JDBC instance for your account.The RDS table is used to connect to the source stream.CREA",
"product_code":"dli",
"title":"JDBC Dimension Table",
"uri":"dli_08_0318.html",
"doc_type":"sqlreference",
"p_code":"408",
"code":"409"
},
{
"desc":"Create a GaussDB(DWS) dimension table to connect to the input stream.You have created a GaussDB(DWS) instance for your account.Use an RDS table to connect to the source s",
"product_code":"dli",
"title":"GaussDB(DWS) Dimension Table",
"uri":"dli_08_0319.html",
"doc_type":"sqlreference",
"p_code":"408",
"code":"410"
},
{
"desc":"Create a Hbase dimension table to connect to the source stream.An enhanced datasource connection has been created for DLI to connect to HBase, so that jobs can run on the",
"product_code":"dli",
"title":"HBase Dimension Table",
"uri":"dli_08_0320.html",
"doc_type":"sqlreference",
"p_code":"408",
"code":"411"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Data Manipulation Language (DML)",
"uri":"dli_08_0321.html",
"doc_type":"sqlreference",
"p_code":"374",
"code":"412"
},
{
"desc":"SyntaxDescriptionThis clause is used to select data from a table.ALL indicates that all results are returned.DISTINCT indicates that the duplicated results are removed.Pr",
"product_code":"dli",
"title":"SELECT",
"uri":"dli_08_0322.html",
"doc_type":"sqlreference",
"p_code":"412",
"code":"413"
},
{
"desc":"SyntaxDescriptionUNION is used to return the union set of multiple query results.INTERSECT is used to return the intersection of multiple query results.EXCEPT is used to ",
"product_code":"dli",
"title":"Set Operations",
"uri":"dli_08_0323.html",
"doc_type":"sqlreference",
"p_code":"412",
"code":"414"
},
{
"desc":"DescriptionGroup Window is defined in GROUP BY. One record is generated from each group. Group Window involves the following functions:Array functionsArray functionsGroup",
"product_code":"dli",
"title":"Window",
"uri":"dli_08_0324.html",
"doc_type":"sqlreference",
"p_code":"412",
"code":"415"
},
{
"desc":"SyntaxPrecautionsCurrently, only equi-joins are supported, for example, joins that have at least one conjunctive condition with an equality predicate. Arbitrary cross or ",
"product_code":"dli",
"title":"JOIN",
"uri":"dli_08_0325.html",
"doc_type":"sqlreference",
"p_code":"412",
"code":"416"
},
{
"desc":"FunctionThis clause is used to sort data in ascending order on a time attribute.PrecautionsCurrently, only sorting by time attribute is supported.ExampleSort data in asce",
"product_code":"dli",
"title":"OrderBy & Limit",
"uri":"dli_08_0326.html",
"doc_type":"sqlreference",
"p_code":"412",
"code":"417"
},
{
"desc":"Top-N queries ask for the N smallest or largest values ordered by columns. Both smallest and largest values sets are considered Top-N queries. Top-N queries are useful in",
"product_code":"dli",
"title":"Top-N",
"uri":"dli_08_0327.html",
"doc_type":"sqlreference",
"p_code":"412",
"code":"418"
},
{
"desc":"Deduplication removes rows that duplicate over a set of columns, keeping only the first one or the last one.ROW_NUMBER(): Assigns a unique, sequential number to each row,",
"product_code":"dli",
"title":"Deduplication",
"uri":"dli_08_0328.html",
"doc_type":"sqlreference",
"p_code":"412",
"code":"419"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Functions",
"uri":"dli_08_0329.html",
"doc_type":"sqlreference",
"p_code":"374",
"code":"420"
},
{
"desc":"DLI supports the following three types of user-defined functions (UDFs):Regular UDF: takes in one or more input parameters and returns a single result.User-defined table-",
"product_code":"dli",
"title":"User-Defined Functions",
"uri":"dli_08_0330.html",
"doc_type":"sqlreference",
"p_code":"420",
"code":"421"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Built-In Functions",
"uri":"dli_08_0331.html",
"doc_type":"sqlreference",
"p_code":"420",
"code":"422"
},
{
"desc":"All data types can be compared by using relational operators and the result is returned as a BOOLEAN value.Relationship operators are binary operators. Two compared data ",
"product_code":"dli",
"title":"Mathematical Operation Functions",
"uri":"dli_08_0332.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"423"
},
{
"desc":"SyntaxExampleTest input data.Test the data source kafka. The message content is as follows:\"{name:James,age:24,sex:male,grade:{math:95,science:[80,85],english:100}}\"\n\"{na",
"product_code":"dli",
"title":"String Functions",
"uri":"dli_08_0333.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"424"
},
{
"desc":"Table 1 lists the temporal functions supported by Flink OpenSource SQL.FunctionReturns a date parsed from string in form of yyyy-MM-dd.Returns a date parsed from string i",
"product_code":"dli",
"title":"Temporal Functions",
"uri":"dli_08_0334.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"425"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Conditional Functions",
"uri":"dli_08_0335.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"426"
},
{
"desc":"This function is used to forcibly convert types.If the input is NULL, NULL is returned.The following example converts the amount value to an integer.Flink jobs do not sup",
"product_code":"dli",
"title":"Type Conversion Function",
"uri":"dli_08_0336.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"427"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Collection Functions",
"uri":"dli_08_0337.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"428"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Value Construction Functions",
"uri":"dli_08_0338.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"429"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Value Access Functions",
"uri":"dli_08_0339.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"430"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Hash Functions",
"uri":"dli_08_0340.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"431"
},
{
"desc":"An aggregate function performs a calculation operation on a set of input values and returns a value. For example, the COUNT function counts the number of rows retrieved b",
"product_code":"dli",
"title":"Aggregate Function",
"uri":"dli_08_0341.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"432"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Table-Valued Functions",
"uri":"dli_08_0342.html",
"doc_type":"sqlreference",
"p_code":"422",
"code":"433"
},
{
"desc":"The split_cursor function can convert one row of records into multiple rows or convert one column of records into multiple columns. Table-valued functions can only be use",
"product_code":"dli",
"title":"split_cursor",
"uri":"dli_08_0357.html",
"doc_type":"sqlreference",
"p_code":"433",
"code":"434"
},
{
"desc":"The string_split function splits a target string into substrings based on the specified separator and returns a substring list.Prepare test input data.Source table disSou",
"product_code":"dli",
"title":"string_split",
"uri":"dli_08_0356.html",
"doc_type":"sqlreference",
"p_code":"433",
"code":"435"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Historical Versions",
"uri":"dli_08_0450.html",
"doc_type":"sqlreference",
"p_code":"",
"code":"436"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Flink SQL Syntax",
"uri":"dli_08_0233.html",
"doc_type":"sqlreference",
"p_code":"436",
"code":"437"
},
{
"desc":"Currently, Flink SQL only supports the following operations: SELECT, FROM, WHERE, UNION, aggregation, window, JOIN between stream and table data, and JOIN between streams",
"product_code":"dli",
"title":"SQL Syntax Constraints and Definitions",
"uri":"dli_08_0075.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"438"
},
{
"desc":"This section describes the Flink SQL syntax list provided by DLI. For details about the parameters and examples, see the syntax description.",
"product_code":"dli",
"title":"SQL Syntax Overview of Stream Jobs",
"uri":"dli_08_0275.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"439"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Source Stream",
"uri":"dli_08_0234.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"440"
},
{
"desc":"Create a source stream to obtain data from HBase of CloudTable as input data of the job. HBase is a column-oriented distributed cloud storage system that features enhance",
"product_code":"dli",
"title":"CloudTable HBase Source Stream",
"uri":"dli_08_0237.html",
"doc_type":"sqlreference",
"p_code":"440",
"code":"441"
},
{
"desc":"Create a source stream to read data from DIS. DIS accesses user data and Flink job reads data from the DIS stream as input data for jobs. Flink jobs can quickly remove da",
"product_code":"dli",
"title":"DIS Source Stream",
"uri":"dli_08_0235.html",
"doc_type":"sqlreference",
"p_code":"440",
"code":"442"
},
{
"desc":"DMS (Distributed Message Service) is a message middleware service based on distributed, high-availability clustering technology. It provides reliable, scalable, fully man",
"product_code":"dli",
"title":"DMS Source Stream",
"uri":"dli_08_0270.html",
"doc_type":"sqlreference",
"p_code":"440",
"code":"443"
},
{
"desc":"Create a source stream to obtain data from Kafka as input data for jobs.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscripti",
"product_code":"dli",
"title":"MRS Kafka Source Stream",
"uri":"dli_08_0238.html",
"doc_type":"sqlreference",
"p_code":"440",
"code":"444"
},
{
"desc":"Create a source stream to obtain data from Kafka as input data for jobs.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscripti",
"product_code":"dli",
"title":"Open-Source Kafka Source Stream",
"uri":"dli_08_0239.html",
"doc_type":"sqlreference",
"p_code":"440",
"code":"445"
},
{
"desc":"Create a source stream to obtain data from OBS. DLI reads data stored by users in OBS as input data for jobs. OBS applies to various scenarios, such as big data analysis,",
"product_code":"dli",
"title":"OBS Source Stream",
"uri":"dli_08_0236.html",
"doc_type":"sqlreference",
"p_code":"440",
"code":"446"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Sink Stream",
"uri":"dli_08_0240.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"447"
},
{
"desc":"DLI exports the job output data to HBase of CloudTable. HBase is a column-oriented distributed cloud storage system that features enhanced reliability, excellent performa",
"product_code":"dli",
"title":"CloudTable HBase Sink Stream",
"uri":"dli_08_0243.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"448"
},
{
"desc":"DLI exports the job output data to OpenTSDB of CloudTable. OpenTSDB is a distributed, scalable time series database based on HBase. It stores time series data. Time serie",
"product_code":"dli",
"title":"CloudTable OpenTSDB Sink Stream",
"uri":"dli_08_0244.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"449"
},
{
"desc":"DLI exports the output data of the Flink job to OpenTSDB of MRS.OpenTSDB has been installed in the MRS cluster.In this scenario, jobs must run on the dedicated queue of D",
"product_code":"dli",
"title":"MRS OpenTSDB Sink Stream",
"uri":"dli_08_0286.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"450"
},
{
"desc":"DLI exports Flink job output data to Elasticsearch of Cloud Search Service (CSS). Elasticsearch is a popular enterprise-class Lucene-powered search server and provides th",
"product_code":"dli",
"title":"CSS Elasticsearch Sink Stream",
"uri":"dli_08_0252.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"451"
},
{
"desc":"DLI exports the Flink job output data to Redis of DCS. Redis is a storage system that supports multiple types of data structures such as key-value. It can be used in scen",
"product_code":"dli",
"title":"DCS Sink Stream",
"uri":"dli_08_0253.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"452"
},
{
"desc":"DLI outputs the job output data to Document Database Service (DDS).DDS is compatible with the MongoDB protocol and is secure, highly available, reliable, scalable, and ea",
"product_code":"dli",
"title":"DDS Sink Stream",
"uri":"dli_08_0249.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"453"
},
{
"desc":"DLI writes the Flink job output data into DIS. This cloud ecosystem is applicable to scenarios where data is filtered and imported to the DIS stream for future processing",
"product_code":"dli",
"title":"DIS Sink Stream",
"uri":"dli_08_0241.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"454"
},
{
"desc":"DMS (Distributed Message Service) is a message middleware service based on distributed, high-availability clustering technology. It provides reliable, scalable, fully man",
"product_code":"dli",
"title":"DMS Sink Stream",
"uri":"dli_08_0271.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"455"
},
{
"desc":"DLI outputs the Flink job output data to Data Warehouse Service (DWS). DWS database kernel is compliant with PostgreSQL. The PostgreSQL database can store data of more co",
"product_code":"dli",
"title":"DWS Sink Stream (JDBC Mode)",
"uri":"dli_08_0247.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"456"
},
{
"desc":"Create a sink stream to export Flink job data to DWS through OBS-based dumping, specifically, output Flink job data to OBS and then import data from OBS to DWS. For detai",
"product_code":"dli",
"title":"DWS Sink Stream (OBS-based Dumping)",
"uri":"dli_08_0248.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"457"
},
{
"desc":"DLI exports the output data of the Flink job to HBase of MRS.An MRS cluster has been created by using your account. DLI can interconnect with HBase clusters with Kerberos",
"product_code":"dli",
"title":"MRS HBase Sink Stream",
"uri":"dli_08_0255.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"458"
},
{
"desc":"DLI exports the output data of the Flink job to Kafka.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscription system. It deli",
"product_code":"dli",
"title":"MRS Kafka Sink Stream",
"uri":"dli_08_0254.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"459"
},
{
"desc":"DLI exports the output data of the Flink job to Kafka.Apache Kafka is a fast, scalable, and fault-tolerant distributed message publishing and subscription system. It deli",
"product_code":"dli",
"title":"Open-Source Kafka Sink Stream",
"uri":"dli_08_0257.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"460"
},
{
"desc":"You can create a sink stream to export data to a file system such as HDFS or OBS. After the data is generated, a non-DLI table can be created directly according to the ge",
"product_code":"dli",
"title":"File System Sink Stream (Recommended)",
"uri":"dli_08_0267.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"461"
},
{
"desc":"Create a sink stream to export DLI data to OBS. DLI can export the job analysis results to OBS. OBS applies to various scenarios, such as big data analysis, cloud-native ",
"product_code":"dli",
"title":"OBS Sink Stream",
"uri":"dli_08_0242.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"462"
},
{
"desc":"DLI outputs the Flink job output data to RDS. Currently, PostgreSQL and MySQL databases are supported. The PostgreSQL database can store data of more complex types and de",
"product_code":"dli",
"title":"RDS Sink Stream",
"uri":"dli_08_0245.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"463"
},
{
"desc":"DLI exports Flink job output data to SMN.SMN provides reliable and flexible large-scale message notification services to DLI. It significantly simplifies system coupling ",
"product_code":"dli",
"title":"SMN Sink Stream",
"uri":"dli_08_0251.html",
"doc_type":"sqlreference",
"p_code":"447",
"code":"464"
},
{
"desc":"The temporary stream is used to simplify SQL logic. If complex SQL logic is followed, write SQL statements concatenated with temporary streams. The temporary stream is ju",
"product_code":"dli",
"title":"Creating a Temporary Stream",
"uri":"dli_08_0258.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"465"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Creating a Dimension Table",
"uri":"dli_08_0259.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"466"
},
{
"desc":"Create a Redis table to connect to the source stream.For details about the JOIN syntax, see JOIN Between Stream Data and Table Data.Redis clusters are not supported.Ensur",
"product_code":"dli",
"title":"Creating a Redis Table",
"uri":"dli_08_0260.html",
"doc_type":"sqlreference",
"p_code":"466",
"code":"467"
},
{
"desc":"Create an RDS/DWS table to connect to the source stream.For details about the JOIN syntax, see JOIN.Ensure that you have created a PostgreSQL or MySQL RDS instance in RDS",
"product_code":"dli",
"title":"Creating an RDS Table",
"uri":"dli_08_0261.html",
"doc_type":"sqlreference",
"p_code":"466",
"code":"468"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Custom Stream Ecosystem",
"uri":"dli_08_0272.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"469"
},
{
"desc":"Compile code to obtain data from the desired cloud ecosystem or open-source ecosystem as the input data of Flink jobs.The user-defined source class needs to inherit the R",
"product_code":"dli",
"title":"Custom Source Stream",
"uri":"dli_08_0273.html",
"doc_type":"sqlreference",
"p_code":"469",
"code":"470"
},
{
"desc":"Compile code to write the data processed by DLI to a specified cloud ecosystem or open-source ecosystem.The user-defined sink class needs to inherit the RichSinkFunction ",
"product_code":"dli",
"title":"Custom Sink Stream",
"uri":"dli_08_0274.html",
"doc_type":"sqlreference",
"p_code":"469",
"code":"471"
},
{
"desc":"Data type is a basic attribute of data and used to distinguish different types of data. Different data types occupy different storage space and support different operatio",
"product_code":"dli",
"title":"Data Type",
"uri":"dli_08_0207.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"472"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Built-In Functions",
"uri":"dli_08_0086.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"473"
},
{
"desc":"All data types can be compared by using relational operators and the result is returned as a BOOLEAN value.Relationship operators are binary operators. Two compared data ",
"product_code":"dli",
"title":"Mathematical Operation Functions",
"uri":"dli_08_0191.html",
"doc_type":"sqlreference",
"p_code":"473",
"code":"474"
},
{
"desc":"The common string functions of DLI are as follows:FunctionConcatenates two strings.Concatenates two strings.SyntaxVARCHAR VARCHAR a || VARCHAR bParametersa: string.b: str",
"product_code":"dli",
"title":"String Functions",
"uri":"dli_08_0096.html",
"doc_type":"sqlreference",
"p_code":"473",
"code":"475"
},
{
"desc":"Table 1 lists the time functions supported by Flink SQL.None",
"product_code":"dli",
"title":"Temporal Functions",
"uri":"dli_08_0097.html",
"doc_type":"sqlreference",
"p_code":"473",
"code":"476"
},
{
"desc":"This function is used to forcibly convert types.If the input is NULL, NULL is returned.Flink jobs do not support the conversion of bigint to timestamp using CAST. You can",
"product_code":"dli",
"title":"Type Conversion Functions",
"uri":"dli_08_0112.html",
"doc_type":"sqlreference",
"p_code":"473",
"code":"477"
},
{
"desc":"An aggregate function performs a calculation operation on a set of input values and returns a value. For example, the COUNT function counts the number of rows retrieved b",
"product_code":"dli",
"title":"Aggregate Functions",
"uri":"dli_08_0104.html",
"doc_type":"sqlreference",
"p_code":"473",
"code":"478"
},
{
"desc":"Table-valued functions can convert one row of records into multiple rows or convert one column of records into multiple columns. Table-valued functions can only be used i",
"product_code":"dli",
"title":"Table-Valued Functions",
"uri":"dli_08_0206.html",
"doc_type":"sqlreference",
"p_code":"473",
"code":"479"
},
{
"desc":"Example:The returned number of elements in the array is 3.HELLO WORLD is returned.",
"product_code":"dli",
"title":"Other Functions",
"uri":"dli_08_0101.html",
"doc_type":"sqlreference",
"p_code":"473",
"code":"480"
},
{
"desc":"DLI supports the following three types of user-defined functions (UDFs):Regular UDF: takes in one or more input parameters and returns a single result.User-defined table-",
"product_code":"dli",
"title":"User-Defined Functions",
"uri":"dli_08_0099.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"481"
},
{
"desc":"Table 1 describes the basic geospatial geometric elements.You can build complex geospatial geometries based on basic geospatial geometric elements. Table 2 describes the ",
"product_code":"dli",
"title":"Geographical Functions",
"uri":"dli_08_0209.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"482"
},
{
"desc":"SyntaxDescriptionThe SELECT statement is used to select data from a table or insert constant data into a table.PrecautionsThe table to be queried must exist. Otherwise, a",
"product_code":"dli",
"title":"SELECT",
"uri":"dli_08_0102.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"483"
},
{
"desc":"SyntaxorDescriptionIf the value of value is value1, result1 is returned. If the value is not any of the values listed in the clause, resultZ is returned. If no else state",
"product_code":"dli",
"title":"Condition Expression",
"uri":"dli_08_0103.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"484"
},
{
"desc":"DescriptionGroup Window is defined in GROUP BY. One record is generated from each group. Group Window involves the following functions:time_attr can be processing-time or",
"product_code":"dli",
"title":"Window",
"uri":"dli_08_0218.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"485"
},
{
"desc":"The JOIN operation allows you to query data from a table and write the query result to the sink stream. Currently, only RDSs and DCS Redis tables are supported. The ON ke",
"product_code":"dli",
"title":"JOIN Between Stream Data and Table Data",
"uri":"dli_08_0106.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"486"
},
{
"desc":"Flink provides two time models: processing time and event time.DLI allows you to specify the time model during creation of the source stream and temporary stream.Processi",
"product_code":"dli",
"title":"Configuring Time Models",
"uri":"dli_08_0107.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"487"
},
{
"desc":"Complex event processing (CEP) is used to detect complex patterns in endless data streams so as to identify and search patterns in various data rows. Pattern matching is ",
"product_code":"dli",
"title":"Pattern Matching",
"uri":"dli_08_0108.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"488"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"StreamingML",
"uri":"dli_08_0109.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"489"
},
{
"desc":"Anomaly detection applies to various scenarios, including intrusion detection, financial fraud detection, sensor data monitoring, medical diagnosis, natural data detectio",
"product_code":"dli",
"title":"Anomaly Detection",
"uri":"dli_08_0110.html",
"doc_type":"sqlreference",
"p_code":"489",
"code":"490"
},
{
"desc":"Modeling and forecasting time series is a common task in many business verticals. Modeling is used to extract meaningful statistics and other characteristics of the data.",
"product_code":"dli",
"title":"Time Series Forecasting",
"uri":"dli_08_0111.html",
"doc_type":"sqlreference",
"p_code":"489",
"code":"491"
},
{
"desc":"Clustering algorithms belong to unsupervised algorithms. K-Means, a clustering algorithm, partitions data points into related clusters by calculating the distance between",
"product_code":"dli",
"title":"Real-Time Clustering",
"uri":"dli_08_0216.html",
"doc_type":"sqlreference",
"p_code":"489",
"code":"492"
},
{
"desc":"Deep learning has a wide range of applications in many industries, such as image classification, image recognition, and speech recognition. DLI provides several functions",
"product_code":"dli",
"title":"Deep Learning Model Prediction",
"uri":"dli_08_0088.html",
"doc_type":"sqlreference",
"p_code":"489",
"code":"493"
},
{
"desc":"Flink SQL reserves some strings as keywords. If you want to use the following strings as field names, ensure that they are enclosed by back quotes, for example, `value` a",
"product_code":"dli",
"title":"Reserved Keywords",
"uri":"dli_08_0125.html",
"doc_type":"sqlreference",
"p_code":"437",
"code":"494"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Identifiers",
"uri":"dli_08_0001.html",
"doc_type":"sqlreference",
"p_code":"",
"code":"495"
},
{
"desc":"None.Aggregate function.",
"product_code":"dli",
"title":"aggregate_func",
"uri":"dli_08_0002.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"496"
},
{
"desc":"None.Alias, which must be STRING type. It can be assigned to a field, table, view, or subquery.",
"product_code":"dli",
"title":"alias",
"uri":"dli_08_0003.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"497"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"attr_expr",
"uri":"dli_08_0004.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"498"
},
{
"desc":"None.List of attr_expr, which is separated by commas (,).",
"product_code":"dli",
"title":"attr_expr_list",
"uri":"dli_08_0005.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"499"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"attrs_value_set_expr",
"uri":"dli_08_0006.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"500"
},
{
"desc":"None.Return a boolean expression.",
"product_code":"dli",
"title":"boolean_expression",
"uri":"dli_08_0007.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"501"
},
{
"desc":"None.Formal parameter for function call. It is usually a field name, which is the same as col_name.",
"product_code":"dli",
"title":"col",
"uri":"dli_08_0009.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"502"
},
{
"desc":"None.Column (field) description, which must be STRING type and cannot exceed 256 bytes.",
"product_code":"dli",
"title":"col_comment",
"uri":"dli_08_0010.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"503"
},
{
"desc":"None.Column name, which must be STRING type and cannot exceed 128 bytes.",
"product_code":"dli",
"title":"col_name",
"uri":"dli_08_0011.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"504"
},
{
"desc":"None.Field list, which consists of one col_name or more. If there is more than one col_name, separate them by using a comma (,).",
"product_code":"dli",
"title":"col_name_list",
"uri":"dli_08_0012.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"505"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"condition",
"uri":"dli_08_0013.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"506"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"condition_list",
"uri":"dli_08_0014.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"507"
},
{
"desc":"None.Common expression name.",
"product_code":"dli",
"title":"cte_name",
"uri":"dli_08_0015.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"508"
},
{
"desc":"None.Data type. Currently, only the primitive data types are supported.",
"product_code":"dli",
"title":"data_type",
"uri":"dli_08_0016.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"509"
},
{
"desc":"None.Database description, which must be STRING type and cannot exceed 256 characters.",
"product_code":"dli",
"title":"db_comment",
"uri":"dli_08_0017.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"510"
},
{
"desc":"None.Database name, which must be STRING type and cannot exceed 128 bytes.",
"product_code":"dli",
"title":"db_name",
"uri":"dli_08_0018.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"511"
},
{
"desc":"None.Returned result for the ELSE clause of the CASE WHEN statement.",
"product_code":"dli",
"title":"else_result_expression",
"uri":"dli_08_0019.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"512"
},
{
"desc":"| AVRO| CSV| JSON| ORC| PARQUETCurrently, the preceding formats are supported.Both USING and STORED AS can be used for specifying the data format. You can specify the pre",
"product_code":"dli",
"title":"file_format",
"uri":"dli_08_0020.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"513"
},
{
"desc":"None.File path, which is the OBS path",
"product_code":"dli",
"title":"file_path",
"uri":"dli_08_0021.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"514"
},
{
"desc":"None.Function name, which must be STRING type.",
"product_code":"dli",
"title":"function_name",
"uri":"dli_08_0022.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"515"
},
{
"desc":"None.Expression that includes GROUP BY.",
"product_code":"dli",
"title":"groupby_expression",
"uri":"dli_08_0023.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"516"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"having_condition",
"uri":"dli_08_0024.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"517"
},
{
"desc":"None.Input expression of the CASE WHEN statement.",
"product_code":"dli",
"title":"input_expression",
"uri":"dli_08_0026.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"518"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"join_condition",
"uri":"dli_08_0029.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"519"
},
{
"desc":"None.The condition of an inequality join.",
"product_code":"dli",
"title":"non_equi_join_condition",
"uri":"dli_08_0030.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"520"
},
{
"desc":"None.Maximum number of output lines specified by LIMIT. Which must be INT type.",
"product_code":"dli",
"title":"number",
"uri":"dli_08_0031.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"521"
},
{
"desc":"None.Partition column name, that is, partition field name, which must be STRING type.",
"product_code":"dli",
"title":"partition_col_name",
"uri":"dli_08_0034.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"522"
},
{
"desc":"None.Partition column value, that is, partition field value.",
"product_code":"dli",
"title":"partition_col_value",
"uri":"dli_08_0035.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"523"
},
{
"desc":"partition_specs : (partition_col_name = partition_col_value, partition_col_name = partition_col_value, ...);Table partition list, which is expressed by using key=value pa",
"product_code":"dli",
"title":"partition_specs",
"uri":"dli_08_0036.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"524"
},
{
"desc":"None.Property name, which must be STRING type.",
"product_code":"dli",
"title":"property_name",
"uri":"dli_08_0037.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"525"
},
{
"desc":"None.Property value, which must be STRING type.",
"product_code":"dli",
"title":"property_value",
"uri":"dli_08_0038.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"526"
},
{
"desc":"None.Pattern matching string, which supports wildcard matching.",
"product_code":"dli",
"title":"regex_expression",
"uri":"dli_08_0039.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"527"
},
{
"desc":"None.Returned result for the THEN clause of the CASE WHEN statement.",
"product_code":"dli",
"title":"result_expression",
"uri":"dli_08_0040.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"528"
},
{
"desc":"None.Query clause for the basic SELECT statement.",
"product_code":"dli",
"title":"select_statement",
"uri":"dli_08_0042.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"529"
},
{
"desc":"None.Separator, which can be customized by users, for example, comma (,), semicolon (;), and colon (:). Which must be CHAR type.",
"product_code":"dli",
"title":"separator",
"uri":"dli_08_0043.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"530"
},
{
"desc":"None.SQL statement containing the common expression defined by cte_name.",
"product_code":"dli",
"title":"sql_containing_cte_name",
"uri":"dli_08_0045.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"531"
},
{
"desc":"None.Subquery.",
"product_code":"dli",
"title":"sub_query",
"uri":"dli_08_0046.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"532"
},
{
"desc":"None.Table description, which must be STRING type and cannot exceed 256 bytes.",
"product_code":"dli",
"title":"table_comment",
"uri":"dli_08_0047.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"533"
},
{
"desc":"NoneTable name, which cannot exceed 128 bytes. The string type and \"$\" symbol are supported.",
"product_code":"dli",
"title":"table_name",
"uri":"dli_08_0048.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"534"
},
{
"desc":"None.Table property list, which is expressed by using key=value pairs. key represents property_name, and value represents property_value. If there is more than one key=va",
"product_code":"dli",
"title":"table_properties",
"uri":"dli_08_0049.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"535"
},
{
"desc":"None.Table or view name, which must be STRING type. It can also be a subquery. If it is subquery, an alias must also be provided.",
"product_code":"dli",
"title":"table_reference",
"uri":"dli_08_0050.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"536"
},
{
"desc":"None.When expression of the CASE WHEN statement. It is used for matching with the input expression.",
"product_code":"dli",
"title":"when_expression",
"uri":"dli_08_0053.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"537"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"where_condition",
"uri":"dli_08_0054.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"538"
},
{
"desc":"NoneAnalysis window function.",
"product_code":"dli",
"title":"window_function",
"uri":"dli_08_0055.html",
"doc_type":"sqlreference",
"p_code":"495",
"code":"539"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Operators",
"uri":"dli_08_0060.html",
"doc_type":"sqlreference",
"p_code":"",
"code":"540"
},
{
"desc":"All data types can be compared by using relational operators and the result is returned as a BOOLEAN value.Relationship operators are binary operators. Two compared data ",
"product_code":"dli",
"title":"Relational Operators",
"uri":"dli_08_0061.html",
"doc_type":"sqlreference",
"p_code":"540",
"code":"541"
},
{
"desc":"Arithmetic operators include binary operators and unary operators. For both types of operators, the returned results are numbers. Table 1 lists the arithmetic operators s",
"product_code":"dli",
"title":"Arithmetic Operators",
"uri":"dli_08_0062.html",
"doc_type":"sqlreference",
"p_code":"540",
"code":"542"
},
{
"desc":"Common logical operators include AND, OR, and NOT. The operation result can be TRUE, FALSE, or NULL (which means unknown). The priorities of the operators are as follows:",
"product_code":"dli",
"title":"Logical Operators",
"uri":"dli_08_0063.html",
"doc_type":"sqlreference",
"p_code":"540",
"code":"543"
},
{
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
"product_code":"dli",
"title":"Change History",
"uri":"dli_08_00005.html",
"doc_type":"sqlreference",
"p_code":"",
"code":"544"
}
]