@clickzetta/cz-cli-darwin-x64 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cz-cli +0 -0
- package/bin/skills/cz-cli/SKILL.md +58 -0
- package/bin/skills/cz-cli/references/profile-setup.md +88 -0
- package/bin/skills/cz-cli-inner/SKILL.md +96 -0
- package/bin/skills/dt-creator/SKILL.md +15 -0
- package/bin/skills/dt-creator/references/dt-declaration-strategy.md +185 -0
- package/bin/skills/dt-creator/references/incremental-config-reference.md +429 -0
- package/bin/skills/dt-creator/references/refresh-history-guide.md +268 -0
- package/bin/skills/dt-creator/references/sql-limitations.md +80 -0
- package/bin/skills/dynamic-table-alter/SKILL.md +190 -0
- package/bin/skills/lakehouse-doc/SKILL.md +107 -0
- package/bin/skills/lakehouse-doc/references/.gitattributes +1 -0
- package/bin/skills/lakehouse-doc/references/.gitlab-ci.yml +11 -0
- package/bin/skills/lakehouse-doc/references/702bc8f656.md +387 -0
- package/bin/skills/lakehouse-doc/references/774c65e217.md +136 -0
- package/bin/skills/lakehouse-doc/references/9164fed65a.md +1 -0
- package/bin/skills/lakehouse-doc/references/AIGateway.md +3 -0
- package/bin/skills/lakehouse-doc/references/AI_COMPLETE.md +157 -0
- package/bin/skills/lakehouse-doc/references/AI_EMBEDDING.md +70 -0
- package/bin/skills/lakehouse-doc/references/AI_Gateway.md +255 -0
- package/bin/skills/lakehouse-doc/references/AI_eco.md +1 -0
- package/bin/skills/lakehouse-doc/references/AI_function_in_SQL.md +25 -0
- package/bin/skills/lakehouse-doc/references/AI_function_overview.md +25 -0
- package/bin/skills/lakehouse-doc/references/ALTER-EXTERNAL-TABLE.md +78 -0
- package/bin/skills/lakehouse-doc/references/ALTER-SCHEMA.md +85 -0
- package/bin/skills/lakehouse-doc/references/ALTER-TABLE-COLUMN.md +223 -0
- package/bin/skills/lakehouse-doc/references/ALTERTABLE.md +92 -0
- package/bin/skills/lakehouse-doc/references/ARRAY.md +99 -0
- package/bin/skills/lakehouse-doc/references/Account.md +2 -0
- package/bin/skills/lakehouse-doc/references/Analysis.md +1 -0
- package/bin/skills/lakehouse-doc/references/AnalyticsModernDataStack.md +390 -0
- package/bin/skills/lakehouse-doc/references/Application_list.md +26 -0
- package/bin/skills/lakehouse-doc/references/Approval.md +1 -0
- package/bin/skills/lakehouse-doc/references/Approval_list.md +61 -0
- package/bin/skills/lakehouse-doc/references/BIGINT.md +49 -0
- package/bin/skills/lakehouse-doc/references/BINARY.md +104 -0
- package/bin/skills/lakehouse-doc/references/BOOLEAN.md +47 -0
- package/bin/skills/lakehouse-doc/references/BP_AI_Function_Image2text.md +203 -0
- package/bin/skills/lakehouse-doc/references/BluepipeOracleLakehouse_DataSync.md +244 -0
- package/bin/skills/lakehouse-doc/references/CHAR.md +38 -0
- package/bin/skills/lakehouse-doc/references/CONNECTION.md +1 -0
- package/bin/skills/lakehouse-doc/references/COPY-INTO-Location.md +404 -0
- package/bin/skills/lakehouse-doc/references/COPY_INTO_Location.md +371 -0
- package/bin/skills/lakehouse-doc/references/CREAREUSER.md +42 -0
- package/bin/skills/lakehouse-doc/references/CREATE-BLOOMFILTER-INDEX.md +138 -0
- package/bin/skills/lakehouse-doc/references/CREATECONNECTION.md +11 -0
- package/bin/skills/lakehouse-doc/references/CREATEEXTERNAlLSCHEMA.md +290 -0
- package/bin/skills/lakehouse-doc/references/CREATEMATERIALIZEDVIEW.md +518 -0
- package/bin/skills/lakehouse-doc/references/CREATEROLE.md +71 -0
- package/bin/skills/lakehouse-doc/references/CREATESCHEMA.md +40 -0
- package/bin/skills/lakehouse-doc/references/CREATEVIEW.md +63 -0
- package/bin/skills/lakehouse-doc/references/CREATE_EXTERNATL_FUNCTION.md +219 -0
- package/bin/skills/lakehouse-doc/references/CTERevenueCohort.md +275 -0
- package/bin/skills/lakehouse-doc/references/ComputeResourceDDL.md +1 -0
- package/bin/skills/lakehouse-doc/references/Concepts.md +1 -0
- package/bin/skills/lakehouse-doc/references/Create_Embeding_Function.md +236 -0
- package/bin/skills/lakehouse-doc/references/Create_LLM_Function.md +242 -0
- package/bin/skills/lakehouse-doc/references/CreditScoringwithZettaparkandPythonMLlibraryNew.md +873 -0
- package/bin/skills/lakehouse-doc/references/DATE.md +50 -0
- package/bin/skills/lakehouse-doc/references/DDL.md +1 -0
- package/bin/skills/lakehouse-doc/references/DECIMAL.md +27 -0
- package/bin/skills/lakehouse-doc/references/DELETE.md +48 -0
- package/bin/skills/lakehouse-doc/references/DESC-INDEX.md +41 -0
- package/bin/skills/lakehouse-doc/references/DESC-JOB.md +31 -0
- package/bin/skills/lakehouse-doc/references/DESCCONNECTION.md +39 -0
- package/bin/skills/lakehouse-doc/references/DESCMATERIALIZEDVIEW.md +31 -0
- package/bin/skills/lakehouse-doc/references/DESCSCHEMAS.md +59 -0
- package/bin/skills/lakehouse-doc/references/DESCTABLE.md +105 -0
- package/bin/skills/lakehouse-doc/references/DESCVIEW.md +66 -0
- package/bin/skills/lakehouse-doc/references/DOUBLE.md +58 -0
- package/bin/skills/lakehouse-doc/references/DQL.md +1 -0
- package/bin/skills/lakehouse-doc/references/DROP-INDEX.md +29 -0
- package/bin/skills/lakehouse-doc/references/DROPCONNECTION.md +32 -0
- package/bin/skills/lakehouse-doc/references/DROPMATERIALIZEDVIEW.md +42 -0
- package/bin/skills/lakehouse-doc/references/DROPROLE.md +56 -0
- package/bin/skills/lakehouse-doc/references/DROPSCHEMA.md +37 -0
- package/bin/skills/lakehouse-doc/references/DROPTABLE.md +46 -0
- package/bin/skills/lakehouse-doc/references/DROPUSER.md +34 -0
- package/bin/skills/lakehouse-doc/references/DROPVIEW.md +33 -0
- package/bin/skills/lakehouse-doc/references/DataQuality.md +99 -0
- package/bin/skills/lakehouse-doc/references/DataSourceConfigGuide.md +1 -0
- package/bin/skills/lakehouse-doc/references/DataSource_ADBMySQL.md +35 -0
- package/bin/skills/lakehouse-doc/references/DataSource_ADB_PostgreSQL.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_AMQP.md +37 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Amazon_DocumentDB.md +115 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Amazon_OpenSearch.md +42 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Aurora_MySQL.md +35 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Aurora_PostgreSQL.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_AutoMQ.md +124 -0
- package/bin/skills/lakehouse-doc/references/DataSource_COS.md +31 -0
- package/bin/skills/lakehouse-doc/references/DataSource_ClickHouse.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_DB2.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_DM.md +35 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Databricks.md +38 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Doris.md +34 -0
- package/bin/skills/lakehouse-doc/references/DataSource_DynamoDB.md +37 -0
- package/bin/skills/lakehouse-doc/references/DataSource_ElasticSearch.md +30 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Greenplum.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_HANA.md +53 -0
- package/bin/skills/lakehouse-doc/references/DataSource_HBase.md +29 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Hive.md +52 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Hologres.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Kafka.md +32 -0
- package/bin/skills/lakehouse-doc/references/DataSource_MariaDB.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_MaxCompute.md +32 -0
- package/bin/skills/lakehouse-doc/references/DataSource_MongoDB.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_MySQL.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_OSS.md +31 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Oracle.md +35 -0
- package/bin/skills/lakehouse-doc/references/DataSource_PorarDB.md +37 -0
- package/bin/skills/lakehouse-doc/references/DataSource_PostgreSQL.md +36 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Redis.md +55 -0
- package/bin/skills/lakehouse-doc/references/DataSource_Redshift.md +49 -0
- package/bin/skills/lakehouse-doc/references/DataSource_RestApi.md +30 -0
- package/bin/skills/lakehouse-doc/references/DataSource_S3.md +25 -0
- package/bin/skills/lakehouse-doc/references/DataSource_SLS.md +31 -0
- package/bin/skills/lakehouse-doc/references/DataSource_StarRocks.md +35 -0
- package/bin/skills/lakehouse-doc/references/DataSource_TiDB.md +36 -0
- package/bin/skills/lakehouse-doc/references/Datalake_StorageConnection.md +12 -0
- package/bin/skills/lakehouse-doc/references/Datasource_SQLServer.md +36 -0
- package/bin/skills/lakehouse-doc/references/Datus_Lakehouse_Integrated_Guide.md +3 -0
- package/bin/skills/lakehouse-doc/references/Datus_Lakehouse_MCPServer.md +111 -0
- package/bin/skills/lakehouse-doc/references/Dify_Integreated_with_LakehouseMCPServer.md +71 -0
- package/bin/skills/lakehouse-doc/references/ELTModernDataStack.md +497 -0
- package/bin/skills/lakehouse-doc/references/ELT_practice.md +1 -0
- package/bin/skills/lakehouse-doc/references/EXPLAIN.md +92 -0
- package/bin/skills/lakehouse-doc/references/EXTERNALFUNCITON.md +1 -0
- package/bin/skills/lakehouse-doc/references/EXTERNALFUNCTION.md +0 -0
- package/bin/skills/lakehouse-doc/references/EXTERNALFUNCTION/345/274/200/345/217/221/346/214/207/345/215/227.md +142 -0
- package/bin/skills/lakehouse-doc/references/EXTERNALSCHEMA.md +1 -0
- package/bin/skills/lakehouse-doc/references/EXTERNALSCHMEA.md +94 -0
- package/bin/skills/lakehouse-doc/references/ExternalFunctionDevGuideJava.md +556 -0
- package/bin/skills/lakehouse-doc/references/FLOAT.md +33 -0
- package/bin/skills/lakehouse-doc/references/FeatureEngineeringForExpandingCustomerFeatureswithZettapark.md +427 -0
- package/bin/skills/lakehouse-doc/references/FileCommand.md +1 -0
- package/bin/skills/lakehouse-doc/references/FileFunction.md +1 -0
- package/bin/skills/lakehouse-doc/references/FineBI.md +195 -0
- package/bin/skills/lakehouse-doc/references/Full_Text_Search.md +1 -0
- package/bin/skills/lakehouse-doc/references/GET.md +63 -0
- package/bin/skills/lakehouse-doc/references/GET_PRESIGNED_URL.md +91 -0
- package/bin/skills/lakehouse-doc/references/GrantPriveleges.md +113 -0
- package/bin/skills/lakehouse-doc/references/Hive_connection.md +50 -0
- package/bin/skills/lakehouse-doc/references/IDENTITY-Column.md +74 -0
- package/bin/skills/lakehouse-doc/references/INSERT.md +186 -0
- package/bin/skills/lakehouse-doc/references/INT.md +36 -0
- package/bin/skills/lakehouse-doc/references/INTERVAL.md +143 -0
- package/bin/skills/lakehouse-doc/references/Ingesting_Data_from_Alibaba_Cloud_Data_Lake_into_Lakehouse.md +976 -0
- package/bin/skills/lakehouse-doc/references/Ingestion.md +1 -0
- package/bin/skills/lakehouse-doc/references/JDBC-Driver.md +67 -0
- package/bin/skills/lakehouse-doc/references/JDBC_MindsDB_ML_LLM.md +237 -0
- package/bin/skills/lakehouse-doc/references/JOIN.md +204 -0
- package/bin/skills/lakehouse-doc/references/JSON.md +423 -0
- package/bin/skills/lakehouse-doc/references/JSON_DataType.md +49 -0
- package/bin/skills/lakehouse-doc/references/KAFKA_Storage_connection.md +1 -0
- package/bin/skills/lakehouse-doc/references/Kafka_connection.md +36 -0
- package/bin/skills/lakehouse-doc/references/Key_Concepts.md +112 -0
- package/bin/skills/lakehouse-doc/references/LATERALVIEW.md +78 -0
- package/bin/skills/lakehouse-doc/references/Lakehouse-client-repository.md +11 -0
- package/bin/skills/lakehouse-doc/references/LakehouseAI.md +0 -0
- package/bin/skills/lakehouse-doc/references/LakehouseAI_overview.md +16 -0
- package/bin/skills/lakehouse-doc/references/LakehouseAI/346/246/202/350/277/260.md +0 -0
- package/bin/skills/lakehouse-doc/references/LakehouseDataGPTTour.md +64 -0
- package/bin/skills/lakehouse-doc/references/LakehouseMCPServer.md +1 -0
- package/bin/skills/lakehouse-doc/references/LakehouseMCPServer_intro.md +493 -0
- package/bin/skills/lakehouse-doc/references/LakehousePythonZettapark.md +1 -0
- package/bin/skills/lakehouse-doc/references/LakehouseStudioTour.md +185 -0
- package/bin/skills/lakehouse-doc/references/Lakehouse_Index_Best_Practice.md +681 -0
- package/bin/skills/lakehouse-doc/references/Lakehouse_Insight.md +104 -0
- package/bin/skills/lakehouse-doc/references/Lakehouse_Platform_Release_Note.md +1 -0
- package/bin/skills/lakehouse-doc/references/Lakehouse_Studio_101.md +1 -0
- package/bin/skills/lakehouse-doc/references/Lakehouse_Studio_Release_Note.md +1 -0
- package/bin/skills/lakehouse-doc/references/Lakehouse_Zilliz_MakeDataReadyforBIandAI.md +228 -0
- package/bin/skills/lakehouse-doc/references/Langchain_plug_installation.md +244 -0
- package/bin/skills/lakehouse-doc/references/Langchain_plug_quick_start.md +225 -0
- package/bin/skills/lakehouse-doc/references/Langchain_plugins_overview.md +406 -0
- package/bin/skills/lakehouse-doc/references/Limitation.md +8 -0
- package/bin/skills/lakehouse-doc/references/LoggingIn.md +67 -0
- package/bin/skills/lakehouse-doc/references/Logstash.md +172 -0
- package/bin/skills/lakehouse-doc/references/MAP.md +42 -0
- package/bin/skills/lakehouse-doc/references/MATERIALIZEDVIEW.md +112 -0
- package/bin/skills/lakehouse-doc/references/MCPServers.md +267 -0
- package/bin/skills/lakehouse-doc/references/MERGE.md +498 -0
- package/bin/skills/lakehouse-doc/references/ManageAccounts.md +184 -0
- package/bin/skills/lakehouse-doc/references/ManagingFilesonDatalakeVolumewithZettapark.md +145 -0
- package/bin/skills/lakehouse-doc/references/MigrateSnowflakeRealtimeETLPipelinetoClickzettaLakehouse.md +865 -0
- package/bin/skills/lakehouse-doc/references/Migrate_Spark_DataEngineeringBestPractices_Project_to_Lakehouse.md +292 -0
- package/bin/skills/lakehouse-doc/references/ModernDataStackWithEcosystemTools.md +1 -0
- package/bin/skills/lakehouse-doc/references/N8N_AI_Workflow_Integration.md +1 -0
- package/bin/skills/lakehouse-doc/references/N8N_Integrated_with_LakehouseMCPServer.md +128 -0
- package/bin/skills/lakehouse-doc/references/Notebook.md +109 -0
- package/bin/skills/lakehouse-doc/references/NotesandGuidelinesforUsingPartitionTables.md +1627 -0
- package/bin/skills/lakehouse-doc/references/OPTIMIZE.md +80 -0
- package/bin/skills/lakehouse-doc/references/OptimizingComputingResources.md +1 -0
- package/bin/skills/lakehouse-doc/references/Overview.md +1 -0
- package/bin/skills/lakehouse-doc/references/PUT.md +70 -0
- package/bin/skills/lakehouse-doc/references/PerformingVectorandScalarRetrievalinheSameTableinLakehouse.md +84 -0
- package/bin/skills/lakehouse-doc/references/Permission_application.md +43 -0
- package/bin/skills/lakehouse-doc/references/PowerBI.md +113 -0
- package/bin/skills/lakehouse-doc/references/PythonSDKVersionHistory.md +24 -0
- package/bin/skills/lakehouse-doc/references/PythonSample_put_gharchive2oss.md +153 -0
- package/bin/skills/lakehouse-doc/references/PythonSample_put_github_rt_events.md +336 -0
- package/bin/skills/lakehouse-doc/references/PythonSqlAlchemyVersionHistory.md +23 -0
- package/bin/skills/lakehouse-doc/references/PythonTaskDev.md +1 -0
- package/bin/skills/lakehouse-doc/references/Python_Task.md +28 -0
- package/bin/skills/lakehouse-doc/references/Query_SnowflakeOpenCatalog_Icebergtable.md +114 -0
- package/bin/skills/lakehouse-doc/references/QuickStartwithCopycommand.md +79 -0
- package/bin/skills/lakehouse-doc/references/README.md +1 -0
- package/bin/skills/lakehouse-doc/references/REFRESH.md +37 -0
- package/bin/skills/lakehouse-doc/references/REMOTEFUNCTION.md +1 -0
- package/bin/skills/lakehouse-doc/references/RN_2023-08-07.md +67 -0
- package/bin/skills/lakehouse-doc/references/RN_2023-09-05.md +75 -0
- package/bin/skills/lakehouse-doc/references/RN_2023-09-18.md +50 -0
- package/bin/skills/lakehouse-doc/references/RN_2023-09-20.md +55 -0
- package/bin/skills/lakehouse-doc/references/RN_2023-10-25.md +102 -0
- package/bin/skills/lakehouse-doc/references/RN_2023-11-09.md +84 -0
- package/bin/skills/lakehouse-doc/references/RN_2023-12-25.md +84 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-01-05.md +78 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-02-05.md +87 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-03-22.md +76 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-04-10.md +61 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-04-16.md +38 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-05-10.md +47 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-05-15.md +43 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-05-24.md +143 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-06-06.md +59 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-06-07.md +71 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-06-27.md +55 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-07-22.md +121 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-07-24.md +58 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-08-07.md +42 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-09-26.md +106 -0
- package/bin/skills/lakehouse-doc/references/RN_2024-10-15.md +49 -0
- package/bin/skills/lakehouse-doc/references/RN_2024_11_11.md +50 -0
- package/bin/skills/lakehouse-doc/references/RN_2024_12_12.md +52 -0
- package/bin/skills/lakehouse-doc/references/RN_2024_12_25.md +40 -0
- package/bin/skills/lakehouse-doc/references/RN_2025-03-05.md +68 -0
- package/bin/skills/lakehouse-doc/references/RN_2025-04-01.md +74 -0
- package/bin/skills/lakehouse-doc/references/RN_2025-05-20.md +90 -0
- package/bin/skills/lakehouse-doc/references/RN_2025-07-03.md +100 -0
- package/bin/skills/lakehouse-doc/references/RN_2025-08-25.md +106 -0
- package/bin/skills/lakehouse-doc/references/RN_2025_03_03.md +141 -0
- package/bin/skills/lakehouse-doc/references/RN_2025_04_22.md +110 -0
- package/bin/skills/lakehouse-doc/references/RN_2025_07_15.md +60 -0
- package/bin/skills/lakehouse-doc/references/RN_2025_10_23.md +85 -0
- package/bin/skills/lakehouse-doc/references/RN_2025_10_30.md +68 -0
- package/bin/skills/lakehouse-doc/references/RN_2025_12_17.md +71 -0
- package/bin/skills/lakehouse-doc/references/RN_2026_1_30-2.0.0.md +43 -0
- package/bin/skills/lakehouse-doc/references/RN_LH_2025_12_30.md +73 -0
- package/bin/skills/lakehouse-doc/references/RN_LH_2026_03_13.md +47 -0
- package/bin/skills/lakehouse-doc/references/Refactor_ELT_practice.md +241 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunctionAsUDF.md +1 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunctionBestPractice.md +350 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunctionDevGuidePython3.md +571 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunctionOnACR.md +249 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunctionintro.md +54 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunction/344/273/213/347/273/215.md +1 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunction/345/274/200/345/217/221/346/214/207/345/215/227Python3.md +1 -0
- package/bin/skills/lakehouse-doc/references/RemoteFunction/346/234/200/344/275/263/345/256/236/350/267/265.md +1 -0
- package/bin/skills/lakehouse-doc/references/RevokePriveleges.md +98 -0
- package/bin/skills/lakehouse-doc/references/SCHEMA.md +48 -0
- package/bin/skills/lakehouse-doc/references/SCHEMADDL.md +0 -0
- package/bin/skills/lakehouse-doc/references/SHOW-INDEX.md +22 -0
- package/bin/skills/lakehouse-doc/references/SHOWCONNECTIONS.md +44 -0
- package/bin/skills/lakehouse-doc/references/SHOWFUNCTIONS.md +38 -0
- package/bin/skills/lakehouse-doc/references/SHOWGRANTS.md +62 -0
- package/bin/skills/lakehouse-doc/references/SHOWROLES.md +59 -0
- package/bin/skills/lakehouse-doc/references/SHOWTABLES.md +46 -0
- package/bin/skills/lakehouse-doc/references/SHOWUSERS.md +26 -0
- package/bin/skills/lakehouse-doc/references/SMALLINT.md +48 -0
- package/bin/skills/lakehouse-doc/references/SQL_CREATE_TABLE_GUIDE.md +1210 -0
- package/bin/skills/lakehouse-doc/references/SQL_DML_Considerations.md +601 -0
- package/bin/skills/lakehouse-doc/references/SQL_Join_Guide.md +655 -0
- package/bin/skills/lakehouse-doc/references/SQL_SELECT_Considerations.md +1818 -0
- package/bin/skills/lakehouse-doc/references/SQL_With_CTE_Guide.md +1510 -0
- package/bin/skills/lakehouse-doc/references/SQL_customers.md +74 -0
- package/bin/skills/lakehouse-doc/references/SQL_revenue.md +31 -0
- package/bin/skills/lakehouse-doc/references/STRING.md +80 -0
- package/bin/skills/lakehouse-doc/references/STRUCT.md +33 -0
- package/bin/skills/lakehouse-doc/references/SUMMARY.md +1279 -0
- package/bin/skills/lakehouse-doc/references/Security_system_inventory_and_optimization_based_Information_Schema.md +412 -0
- package/bin/skills/lakehouse-doc/references/Server_data_for_AI.md +15 -0
- package/bin/skills/lakehouse-doc/references/SlowlyChangingDimensionsInLakehouseUsingStreamsandTasks.md +616 -0
- package/bin/skills/lakehouse-doc/references/Spark_Lakehouse_iceberg_REST.md +151 -0
- package/bin/skills/lakehouse-doc/references/StudioDI_PrivateLinkVPC_fromRDS.md +105 -0
- package/bin/skills/lakehouse-doc/references/Supported_Cloud_Platforms.md +40 -0
- package/bin/skills/lakehouse-doc/references/TABLE.md +49 -0
- package/bin/skills/lakehouse-doc/references/TIMESTAMP.md +56 -0
- package/bin/skills/lakehouse-doc/references/TIMETRAVEL.md +207 -0
- package/bin/skills/lakehouse-doc/references/TINYINT.md +63 -0
- package/bin/skills/lakehouse-doc/references/TPC-H100G_experience.md +49 -0
- package/bin/skills/lakehouse-doc/references/TRUNCATE.md +144 -0
- package/bin/skills/lakehouse-doc/references/TableDesign.md +270 -0
- package/bin/skills/lakehouse-doc/references/TableauConnectToLakehouse.md +64 -0
- package/bin/skills/lakehouse-doc/references/Tutorials.md +1 -0
- package/bin/skills/lakehouse-doc/references/UNDROP-TABLE.md +163 -0
- package/bin/skills/lakehouse-doc/references/UPDATE.md +70 -0
- package/bin/skills/lakehouse-doc/references/USESCHEMA.md +53 -0
- package/bin/skills/lakehouse-doc/references/UnifiedWorkflowIntro.md +31 -0
- package/bin/skills/lakehouse-doc/references/UnifiedWorkflow_demo.md +175 -0
- package/bin/skills/lakehouse-doc/references/Unstructured_io.md +735 -0
- package/bin/skills/lakehouse-doc/references/VARCHARleghth.md +42 -0
- package/bin/skills/lakehouse-doc/references/VIEW.md +47 -0
- package/bin/skills/lakehouse-doc/references/Volume_LIST.md +52 -0
- package/bin/skills/lakehouse-doc/references/WINDOWFUNCTION.md +561 -0
- package/bin/skills/lakehouse-doc/references/WITH.md +41 -0
- package/bin/skills/lakehouse-doc/references/ZettaparkQuickStart.md +453 -0
- package/bin/skills/lakehouse-doc/references/Zettapark_Data_Engineering_Demo.md +348 -0
- package/bin/skills/lakehouse-doc/references/a_comprehensive_guide_to_ingesting_data_into_clickzetta_lakehouse.md +66 -0
- package/bin/skills/lakehouse-doc/references/access-control-configration.md +249 -0
- package/bin/skills/lakehouse-doc/references/access-control-general.md +82 -0
- package/bin/skills/lakehouse-doc/references/access-control.md +240 -0
- package/bin/skills/lakehouse-doc/references/account_user_management.md +105 -0
- package/bin/skills/lakehouse-doc/references/accountfunds.md +87 -0
- package/bin/skills/lakehouse-doc/references/agg_function.md +1 -0
- package/bin/skills/lakehouse-doc/references/ai_ready_data_overview.md +13 -0
- package/bin/skills/lakehouse-doc/references/airbyte.md +95 -0
- package/bin/skills/lakehouse-doc/references/alert.md +143 -0
- package/bin/skills/lakehouse-doc/references/alicloud-arn-externalid.md +51 -0
- package/bin/skills/lakehouse-doc/references/alicloud_byos_configration.md +129 -0
- package/bin/skills/lakehouse-doc/references/aliyun_storage_connection.md +135 -0
- package/bin/skills/lakehouse-doc/references/alter-dynamic-table.md +375 -0
- package/bin/skills/lakehouse-doc/references/alter-external-schema.md +20 -0
- package/bin/skills/lakehouse-doc/references/alter-materialzied-view.md +238 -0
- package/bin/skills/lakehouse-doc/references/alter-share.md +43 -0
- package/bin/skills/lakehouse-doc/references/alter-user.md +13 -0
- package/bin/skills/lakehouse-doc/references/alter-vcluster.md +134 -0
- package/bin/skills/lakehouse-doc/references/alter-worksapce.md +55 -0
- package/bin/skills/lakehouse-doc/references/alter.md +35 -0
- package/bin/skills/lakehouse-doc/references/analysis_internet_data_nyc_green_data.md +449 -0
- package/bin/skills/lakehouse-doc/references/analytics_cluster_best_practices.md +377 -0
- package/bin/skills/lakehouse-doc/references/analyze-table.md +58 -0
- package/bin/skills/lakehouse-doc/references/array_size.md +34 -0
- package/bin/skills/lakehouse-doc/references/authentication.md +53 -0
- package/bin/skills/lakehouse-doc/references/authoritymanagement.md +1 -0
- package/bin/skills/lakehouse-doc/references/auto-index.md +57 -0
- package/bin/skills/lakehouse-doc/references/aws_storage_connection.md +114 -0
- package/bin/skills/lakehouse-doc/references/backfilling_data.md +60 -0
- package/bin/skills/lakehouse-doc/references/batch_sync.md +54 -0
- package/bin/skills/lakehouse-doc/references/batch_sync_Sop.md +135 -0
- package/bin/skills/lakehouse-doc/references/batchloadparquertfileintoLakehouse.md +79 -0
- package/bin/skills/lakehouse-doc/references/bestpractice_bazhuanyu.md +1 -0
- package/bin/skills/lakehouse-doc/references/billing.md +62 -0
- package/bin/skills/lakehouse-doc/references/bitmap-type.md +524 -0
- package/bin/skills/lakehouse-doc/references/bitmap_uba_guide.md +1190 -0
- package/bin/skills/lakehouse-doc/references/bloomfilter-summary.md +164 -0
- package/bin/skills/lakehouse-doc/references/book.json +17 -0
- package/bin/skills/lakehouse-doc/references/bring_your_own_storage.md +1 -0
- package/bin/skills/lakehouse-doc/references/build-inverted-index.md +27 -0
- package/bin/skills/lakehouse-doc/references/build_rag_with_langchain.md +616 -0
- package/bin/skills/lakehouse-doc/references/bulkload-summary.md +37 -0
- package/bin/skills/lakehouse-doc/references/bulkloadv1-java-sdk.md +178 -0
- package/bin/skills/lakehouse-doc/references/bulkloadv1-python-sdk.md +169 -0
- package/bin/skills/lakehouse-doc/references/byos_general.md +165 -0
- package/bin/skills/lakehouse-doc/references/byos_tencentcloud_configration.md +138 -0
- package/bin/skills/lakehouse-doc/references/cache-command.md +39 -0
- package/bin/skills/lakehouse-doc/references/cancel-job.md +51 -0
- package/bin/skills/lakehouse-doc/references/cardinality_array.md +45 -0
- package/bin/skills/lakehouse-doc/references/charge_analysis_with_lakehouse_mcp_server.md +393 -0
- package/bin/skills/lakehouse-doc/references/clone-doc.md +111 -0
- package/bin/skills/lakehouse-doc/references/cloud_object_storage.md +1 -0
- package/bin/skills/lakehouse-doc/references/cluster-table-guide.md +68 -0
- package/bin/skills/lakehouse-doc/references/cluster-table.md +64 -0
- package/bin/skills/lakehouse-doc/references/composite_task.md +178 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_3rd_tools.md +11 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_dbv_sql_put.md +48 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_environment_and_data_generate.md +627 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_javasdk_buckload_realtime.md +740 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_kafka_realtime_sync.md +71 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_local_file_into_table_by_studio.md +64 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_overview.md +66 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_pipe_kafka.md +7 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_pipe_oss.md +7 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_batchload_public_network.md +52 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_python_node.md +111 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_realtime_cdc_public_network.md +249 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_sql_insert.md +180 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_zettapark_put_file_to_lake.md +206 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_zettapark_save_as_table.md +79 -0
- package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_zettapark_sql_insert.md +113 -0
- package/bin/skills/lakehouse-doc/references/computation.md +6 -0
- package/bin/skills/lakehouse-doc/references/concurrency_scaling.md +57 -0
- package/bin/skills/lakehouse-doc/references/config-datasource.md +79 -0
- package/bin/skills/lakehouse-doc/references/config_volume_dify_storage.md +254 -0
- package/bin/skills/lakehouse-doc/references/connect-with-cli.md +155 -0
- package/bin/skills/lakehouse-doc/references/connect_to_Lakehouse.md +1 -0
- package/bin/skills/lakehouse-doc/references/connection-guide.md +61 -0
- package/bin/skills/lakehouse-doc/references/continue-job.md +260 -0
- package/bin/skills/lakehouse-doc/references/conversational_analytics_datagpt.md +1 -0
- package/bin/skills/lakehouse-doc/references/copy-into-table.md +398 -0
- package/bin/skills/lakehouse-doc/references/cos_storage_connection.md +73 -0
- package/bin/skills/lakehouse-doc/references/cos_volume_creation.md +39 -0
- package/bin/skills/lakehouse-doc/references/cost_management.md +1 -0
- package/bin/skills/lakehouse-doc/references/create-api-connection.md +363 -0
- package/bin/skills/lakehouse-doc/references/create-catalog-connection.md +220 -0
- package/bin/skills/lakehouse-doc/references/create-dynamic-table.md +910 -0
- package/bin/skills/lakehouse-doc/references/create-external-catalog.md +305 -0
- package/bin/skills/lakehouse-doc/references/create-external-table.md +78 -0
- package/bin/skills/lakehouse-doc/references/create-hive-catalog.md +77 -0
- package/bin/skills/lakehouse-doc/references/create-inverted-index.md +163 -0
- package/bin/skills/lakehouse-doc/references/create-kafka-external.md +300 -0
- package/bin/skills/lakehouse-doc/references/create-schema-from-share.md +45 -0
- package/bin/skills/lakehouse-doc/references/create-share.md +46 -0
- package/bin/skills/lakehouse-doc/references/create-sql-function.md +120 -0
- package/bin/skills/lakehouse-doc/references/create-storage-connection.md +346 -0
- package/bin/skills/lakehouse-doc/references/create-synonym.md +75 -0
- package/bin/skills/lakehouse-doc/references/create-table-ddl.md +405 -0
- package/bin/skills/lakehouse-doc/references/create-table-stream.md +226 -0
- package/bin/skills/lakehouse-doc/references/create-vector-index.md +115 -0
- package/bin/skills/lakehouse-doc/references/create.md +46 -0
- package/bin/skills/lakehouse-doc/references/create_cluster.md +121 -0
- package/bin/skills/lakehouse-doc/references/creating_alicloud_privatelinkendpoint.md +37 -0
- package/bin/skills/lakehouse-doc/references/creating_alicloud_privatelinkservice.md +31 -0
- package/bin/skills/lakehouse-doc/references/creating_tencentcloud_privatelinkendpoint.md +33 -0
- package/bin/skills/lakehouse-doc/references/creating_tencentcloud_privatelinkservice.md +19 -0
- package/bin/skills/lakehouse-doc/references/czguide-intro-to-cdc-using-clickzetta-rtsync-dynamic-tables.md +717 -0
- package/bin/skills/lakehouse-doc/references/data-catalog.md +1 -0
- package/bin/skills/lakehouse-doc/references/data-integration-intro.md +60 -0
- package/bin/skills/lakehouse-doc/references/data-integration.md +10 -0
- package/bin/skills/lakehouse-doc/references/data-lifecycle.md +46 -0
- package/bin/skills/lakehouse-doc/references/data-load-summary.md +71 -0
- package/bin/skills/lakehouse-doc/references/data-mamager-tool.md +1 -0
- package/bin/skills/lakehouse-doc/references/data-recover.md +52 -0
- package/bin/skills/lakehouse-doc/references/data-type.md +1 -0
- package/bin/skills/lakehouse-doc/references/data-types-timestamp-ntz.md +139 -0
- package/bin/skills/lakehouse-doc/references/data.md +1 -0
- package/bin/skills/lakehouse-doc/references/data_catalog.md +106 -0
- package/bin/skills/lakehouse-doc/references/data_clean_with_sql.md +406 -0
- package/bin/skills/lakehouse-doc/references/data_ecosystem.md +1 -0
- package/bin/skills/lakehouse-doc/references/data_ops.md +7 -0
- package/bin/skills/lakehouse-doc/references/data_org.md +1 -0
- package/bin/skills/lakehouse-doc/references/data_privacy.md +50 -0
- package/bin/skills/lakehouse-doc/references/data_result_profile.md +22 -0
- package/bin/skills/lakehouse-doc/references/data_security.md +1 -0
- package/bin/skills/lakehouse-doc/references/data_sharing_between_accounts_guide.md +331 -0
- package/bin/skills/lakehouse-doc/references/data_transfer_datalake.md +1 -0
- package/bin/skills/lakehouse-doc/references/data_visualization.md +96 -0
- package/bin/skills/lakehouse-doc/references/databricks_yunqi_integration_guide_v2.md +811 -0
- package/bin/skills/lakehouse-doc/references/datagpt_bestpractice.md +1 -0
- package/bin/skills/lakehouse-doc/references/datagpt_data_source.md +58 -0
- package/bin/skills/lakehouse-doc/references/datagpt_get_accurate_answers.md +34 -0
- package/bin/skills/lakehouse-doc/references/datagpt_intro.md +1 -0
- package/bin/skills/lakehouse-doc/references/datagpt_quickstart.md +94 -0
- package/bin/skills/lakehouse-doc/references/datagpt_tutorial.md +1 -0
- package/bin/skills/lakehouse-doc/references/datalake_FAQ.md +54 -0
- package/bin/skills/lakehouse-doc/references/datalake_overview.md +17 -0
- package/bin/skills/lakehouse-doc/references/datalake_privilege.md +55 -0
- package/bin/skills/lakehouse-doc/references/datalake_query_ingest.md +18 -0
- package/bin/skills/lakehouse-doc/references/datalake_unstructure_data.md +3 -0
- package/bin/skills/lakehouse-doc/references/datalake_volume.md +92 -0
- package/bin/skills/lakehouse-doc/references/datalake_volume_anlytics.md +1 -0
- package/bin/skills/lakehouse-doc/references/datalake_volume_object.md +1 -0
- package/bin/skills/lakehouse-doc/references/dataops_practice.md +105 -0
- package/bin/skills/lakehouse-doc/references/datasharing.md +322 -0
- package/bin/skills/lakehouse-doc/references/datasharing_catalog.md +1 -0
- package/bin/skills/lakehouse-doc/references/datasource_ip_whitelist.md +93 -0
- package/bin/skills/lakehouse-doc/references/datasources.md +62 -0
- package/bin/skills/lakehouse-doc/references/datatype-cast.md +105 -0
- package/bin/skills/lakehouse-doc/references/datatype-conversion.md +85 -0
- package/bin/skills/lakehouse-doc/references/datetime_patterns.md +61 -0
- package/bin/skills/lakehouse-doc/references/datus_lakehouse_installation.md +376 -0
- package/bin/skills/lakehouse-doc/references/datus_lakehouse_solution_overview.md +148 -0
- package/bin/skills/lakehouse-doc/references/db_dw_connection.md +1 -0
- package/bin/skills/lakehouse-doc/references/default-value.md +89 -0
- package/bin/skills/lakehouse-doc/references/delta-lake.md +185 -0
- package/bin/skills/lakehouse-doc/references/desc-catalog-table.md +33 -0
- package/bin/skills/lakehouse-doc/references/desc-catalog.md +31 -0
- package/bin/skills/lakehouse-doc/references/desc-dynamic-table.md +62 -0
- package/bin/skills/lakehouse-doc/references/desc-external-schemas.md +66 -0
- package/bin/skills/lakehouse-doc/references/desc-external-table.md +70 -0
- package/bin/skills/lakehouse-doc/references/desc-function.md +16 -0
- package/bin/skills/lakehouse-doc/references/desc-history-dynamic-table.md +50 -0
- package/bin/skills/lakehouse-doc/references/desc-history-table.md +73 -0
- package/bin/skills/lakehouse-doc/references/desc-history.md +73 -0
- package/bin/skills/lakehouse-doc/references/desc-share.md +59 -0
- package/bin/skills/lakehouse-doc/references/desc-table-stream.md +44 -0
- package/bin/skills/lakehouse-doc/references/desc-vcluster.md +42 -0
- package/bin/skills/lakehouse-doc/references/describe.md +38 -0
- package/bin/skills/lakehouse-doc/references/dify_config_lakehouse_as_vectordb.md +286 -0
- package/bin/skills/lakehouse-doc/references/dify_yunqilakehouse_integration_overview.md +188 -0
- package/bin/skills/lakehouse-doc/references/discovery_analysis_data_in_json_file_on_external_volume.md +625 -0
- package/bin/skills/lakehouse-doc/references/discovery_analysis_data_in_parquert_file_on_external_volume.md +599 -0
- package/bin/skills/lakehouse-doc/references/download-data.md +1 -0
- package/bin/skills/lakehouse-doc/references/drop-dynamic-table.md +46 -0
- package/bin/skills/lakehouse-doc/references/drop-external-schema.md +44 -0
- package/bin/skills/lakehouse-doc/references/drop-external-table.md +43 -0
- package/bin/skills/lakehouse-doc/references/drop-function.md +36 -0
- package/bin/skills/lakehouse-doc/references/drop-share.md +43 -0
- package/bin/skills/lakehouse-doc/references/drop-synonym.md +35 -0
- package/bin/skills/lakehouse-doc/references/drop-table-stream.md +42 -0
- package/bin/skills/lakehouse-doc/references/drop-vcluster.md +52 -0
- package/bin/skills/lakehouse-doc/references/drop.md +32 -0
- package/bin/skills/lakehouse-doc/references/dynamic-mask.md +201 -0
- package/bin/skills/lakehouse-doc/references/dynamic-table-incre.md +62 -0
- package/bin/skills/lakehouse-doc/references/dynamic-table-introduce.md +339 -0
- package/bin/skills/lakehouse-doc/references/dynamicTable-DML-sql.md +52 -0
- package/bin/skills/lakehouse-doc/references/dynamicTable-dml.md +48 -0
- package/bin/skills/lakehouse-doc/references/dynamicTable-parmaters.md +425 -0
- package/bin/skills/lakehouse-doc/references/dynamic_table_summary.md +366 -0
- package/bin/skills/lakehouse-doc/references/dynamic_table_task.md +73 -0
- package/bin/skills/lakehouse-doc/references/dynamic_table_using_studio.md +159 -0
- package/bin/skills/lakehouse-doc/references/dynamictable.md +56 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/Zeppelin.md +84 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/airbyte.md +75 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/datagrip-lakehouse.md +56 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/datax.md +154 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/dbeaver-lakehouse.md +67 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/dbt.md +139 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/rath.md +87 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/sqlline.md +82 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/sqlworkbench-j-lakehouse.md +54 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/streamlit.md +117 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/superset.md +109 -0
- package/bin/skills/lakehouse-doc/references/eco_integration/trino.md +75 -0
- package/bin/skills/lakehouse-doc/references/ecosystem-all.md +24 -0
- package/bin/skills/lakehouse-doc/references/export_data_with_data-integration.md +3 -0
- package/bin/skills/lakehouse-doc/references/external-Volume.md +10 -0
- package/bin/skills/lakehouse-doc/references/external-catalog-summary.md +42 -0
- package/bin/skills/lakehouse-doc/references/external-function-summary.md +0 -0
- package/bin/skills/lakehouse-doc/references/external-hudi-table.md +187 -0
- package/bin/skills/lakehouse-doc/references/external-table-guide.md +96 -0
- package/bin/skills/lakehouse-doc/references/external_object_user_guide.md +298 -0
- package/bin/skills/lakehouse-doc/references/external_volume.md +1 -0
- package/bin/skills/lakehouse-doc/references/f6fc6447ee.md +151 -0
- package/bin/skills/lakehouse-doc/references/federation-query.md +1 -0
- package/bin/skills/lakehouse-doc/references/finebi-mysql.md +104 -0
- package/bin/skills/lakehouse-doc/references/flink-write-connector.md +695 -0
- package/bin/skills/lakehouse-doc/references/from_lakehouse_to_volume.md +98 -0
- package/bin/skills/lakehouse-doc/references/from_volume_to_table.md +45 -0
- package/bin/skills/lakehouse-doc/references/fulltext_indexes_guide.md +1180 -0
- package/bin/skills/lakehouse-doc/references/generated-column.md +113 -0
- package/bin/skills/lakehouse-doc/references/generated_columns_guide.md +847 -0
- package/bin/skills/lakehouse-doc/references/geospatial_analysis.md +558 -0
- package/bin/skills/lakehouse-doc/references/get-started-with-sample-data.md +83 -0
- package/bin/skills/lakehouse-doc/references/getting_started_with_vcluster_for_processing_analytics.md +471 -0
- package/bin/skills/lakehouse-doc/references/grant-to-share.md +55 -0
- package/bin/skills/lakehouse-doc/references/grant-user-privileges.md +100 -0
- package/bin/skills/lakehouse-doc/references/groupby.md +1260 -0
- package/bin/skills/lakehouse-doc/references/guides-overview-connecting.md +46 -0
- package/bin/skills/lakehouse-doc/references/ide.md +2 -0
- package/bin/skills/lakehouse-doc/references/ifnull.md +72 -0
- package/bin/skills/lakehouse-doc/references/ilike.md +89 -0
- package/bin/skills/lakehouse-doc/references/import_data_with_data-integration.md +3 -0
- package/bin/skills/lakehouse-doc/references/importdatabypythonintoLakehouse.md +134 -0
- package/bin/skills/lakehouse-doc/references/index2.md +1 -0
- package/bin/skills/lakehouse-doc/references/instance-informaiton-schema-summary.md +51 -0
- package/bin/skills/lakehouse-doc/references/instance-informaiton-schema.md +278 -0
- package/bin/skills/lakehouse-doc/references/instance-information_schema.md +1 -0
- package/bin/skills/lakehouse-doc/references/internal_volume.md +271 -0
- package/bin/skills/lakehouse-doc/references/intro-supported-features.md +48 -0
- package/bin/skills/lakehouse-doc/references/inverted-index.md +445 -0
- package/bin/skills/lakehouse-doc/references/inverted_idx_bm25_param.md +251 -0
- package/bin/skills/lakehouse-doc/references/inverted_idx_multi-match.md +89 -0
- package/bin/skills/lakehouse-doc/references/is-null.md +59 -0
- package/bin/skills/lakehouse-doc/references/it-operation-management.md +1 -0
- package/bin/skills/lakehouse-doc/references/java_reference/client.md +49 -0
- package/bin/skills/lakehouse-doc/references/java_reference/java-sdk-release-notes.md +32 -0
- package/bin/skills/lakehouse-doc/references/java_reference/java-sdk-summary.md +138 -0
- package/bin/skills/lakehouse-doc/references/java_reference/jdbc.md +211 -0
- package/bin/skills/lakehouse-doc/references/java_reference/realtime-upload.md +295 -0
- package/bin/skills/lakehouse-doc/references/jdbc_task.md +37 -0
- package/bin/skills/lakehouse-doc/references/job-manage.md +1 -0
- package/bin/skills/lakehouse-doc/references/job_history_analysis_with_information_schema.md +597 -0
- package/bin/skills/lakehouse-doc/references/jobprofile-bestpractices.md +104 -0
- package/bin/skills/lakehouse-doc/references/json_analyze.md +422 -0
- package/bin/skills/lakehouse-doc/references/json_data_process_guide.md +881 -0
- package/bin/skills/lakehouse-doc/references/json_guide_for_complex_biz_cases.md +1899 -0
- package/bin/skills/lakehouse-doc/references/kafka-external-table.md +103 -0
- package/bin/skills/lakehouse-doc/references/lakehouse-ai.md +1 -0
- package/bin/skills/lakehouse-doc/references/lakehouse-quick-experience_guide.md +964 -0
- package/bin/skills/lakehouse-doc/references/lakehouse-table-stream-best-practices.md +500 -0
- package/bin/skills/lakehouse-doc/references/lakehouse_billing_anomaly_alert_configuration_guide.md +226 -0
- package/bin/skills/lakehouse-doc/references/lakehouse_instance_overview.md +39 -0
- package/bin/skills/lakehouse-doc/references/lakehouse_table_design_guide.md +2676 -0
- package/bin/skills/lakehouse-doc/references/langchain.md +71 -0
- package/bin/skills/lakehouse-doc/references/langchain_basic_samples.md +606 -0
- package/bin/skills/lakehouse-doc/references/langchain_integration.md +1 -0
- package/bin/skills/lakehouse-doc/references/left.md +51 -0
- package/bin/skills/lakehouse-doc/references/like.md +115 -0
- package/bin/skills/lakehouse-doc/references/list-partition.md +121 -0
- package/bin/skills/lakehouse-doc/references/llama-index.md +57 -0
- package/bin/skills/lakehouse-doc/references/llms-full.txt +1286 -0
- package/bin/skills/lakehouse-doc/references/llms.txt +71 -0
- package/bin/skills/lakehouse-doc/references/load-data-local.md +82 -0
- package/bin/skills/lakehouse-doc/references/load-data-oss.md +174 -0
- package/bin/skills/lakehouse-doc/references/management.md +5 -0
- package/bin/skills/lakehouse-doc/references/managing-instance.md +67 -0
- package/bin/skills/lakehouse-doc/references/mapjoin.md +62 -0
- package/bin/skills/lakehouse-doc/references/materialized_ddl.md +1 -0
- package/bin/skills/lakehouse-doc/references/meta-objects-and-privileges.md +271 -0
- package/bin/skills/lakehouse-doc/references/metabase.md +73 -0
- package/bin/skills/lakehouse-doc/references/metadata_show_desc_command_guide.md +711 -0
- package/bin/skills/lakehouse-doc/references/metrics_answer_build.md +46 -0
- package/bin/skills/lakehouse-doc/references/mindsdb.md +269 -0
- package/bin/skills/lakehouse-doc/references/monitoring_and_alerting.md +177 -0
- package/bin/skills/lakehouse-doc/references/monitoring_item_specification.md +44 -0
- package/bin/skills/lakehouse-doc/references/multi_cloud_instance_manage_with_mcp_server.md +281 -0
- package/bin/skills/lakehouse-doc/references/multitable_batch_sync.md +463 -0
- package/bin/skills/lakehouse-doc/references/multitable_realtime_sync.md +412 -0
- package/bin/skills/lakehouse-doc/references/multitable_realtime_sync_sop.md +593 -0
- package/bin/skills/lakehouse-doc/references/n8n_Integreated_with_lakehouse_mcp_server.md +494 -0
- package/bin/skills/lakehouse-doc/references/navicat-mysql.md +65 -0
- package/bin/skills/lakehouse-doc/references/network_policy.md +281 -0
- package/bin/skills/lakehouse-doc/references/nyc_green_taxi_data_clean_transform_with_mcp_server.md +315 -0
- package/bin/skills/lakehouse-doc/references/object-model-overview.md +70 -0
- package/bin/skills/lakehouse-doc/references/object_identifier.md +259 -0
- package/bin/skills/lakehouse-doc/references/object_model_design.md +1 -0
- package/bin/skills/lakehouse-doc/references/opensource/travel.md +134 -0
- package/bin/skills/lakehouse-doc/references/operation-maintenance.md +172 -0
- package/bin/skills/lakehouse-doc/references/oss_volume_creation.md +39 -0
- package/bin/skills/lakehouse-doc/references/partition_table.md +344 -0
- package/bin/skills/lakehouse-doc/references/partition_table_guide.md +340 -0
- package/bin/skills/lakehouse-doc/references/performance_optimization.md +1 -0
- package/bin/skills/lakehouse-doc/references/performence_test.md +1 -0
- package/bin/skills/lakehouse-doc/references/permissions-of-built-in-workspace-level-roles.md +131 -0
- package/bin/skills/lakehouse-doc/references/pipe-kafka-bestpractice-1.md +431 -0
- package/bin/skills/lakehouse-doc/references/pipe-kafka-table-stream.md +180 -0
- package/bin/skills/lakehouse-doc/references/pipe-kafka.md +210 -0
- package/bin/skills/lakehouse-doc/references/pipe-storage-object.md +247 -0
- package/bin/skills/lakehouse-doc/references/pipe-summary.md +114 -0
- package/bin/skills/lakehouse-doc/references/pipe-syntax.md +200 -0
- package/bin/skills/lakehouse-doc/references/practice_data_analysis.md +1 -0
- package/bin/skills/lakehouse-doc/references/practice_data_import_and_export.md +1 -0
- package/bin/skills/lakehouse-doc/references/practice_python_task.md +157 -0
- package/bin/skills/lakehouse-doc/references/pricing.md +225 -0
- package/bin/skills/lakehouse-doc/references/primary key.md +86 -0
- package/bin/skills/lakehouse-doc/references/primary-key.md +187 -0
- package/bin/skills/lakehouse-doc/references/privacy-policy.md +364 -0
- package/bin/skills/lakehouse-doc/references/private-link-general.md +68 -0
- package/bin/skills/lakehouse-doc/references/private_link.md +1 -0
- package/bin/skills/lakehouse-doc/references/product-trial-agreement.md +99 -0
- package/bin/skills/lakehouse-doc/references/product_concept.md +1 -0
- package/bin/skills/lakehouse-doc/references/put-get.md +1 -0
- package/bin/skills/lakehouse-doc/references/put_get_volume.md +3 -0
- package/bin/skills/lakehouse-doc/references/python-igs.md +297 -0
- package/bin/skills/lakehouse-doc/references/python_package_install_import_guide.md +53 -0
- package/bin/skills/lakehouse-doc/references/python_reference/connector.md +281 -0
- package/bin/skills/lakehouse-doc/references/python_reference/python-sdk-summary.md +13 -0
- package/bin/skills/lakehouse-doc/references/python_reference/sqlalchemy.md +77 -0
- package/bin/skills/lakehouse-doc/references/python_shell_datasource.md +334 -0
- package/bin/skills/lakehouse-doc/references/query-json-sy.md +47 -0
- package/bin/skills/lakehouse-doc/references/query-syntax.md +234 -0
- package/bin/skills/lakehouse-doc/references/quick_start_batch_sync_data.md +116 -0
- package/bin/skills/lakehouse-doc/references/quick_start_bi_analysis.md +589 -0
- package/bin/skills/lakehouse-doc/references/quick_start_create_workspace.md +58 -0
- package/bin/skills/lakehouse-doc/references/quick_start_data_quality.md +75 -0
- package/bin/skills/lakehouse-doc/references/quick_start_etl.md +131 -0
- package/bin/skills/lakehouse-doc/references/quick_start_monitoring_and_alerting.md +93 -0
- package/bin/skills/lakehouse-doc/references/quick_start_sql_query.md +93 -0
- package/bin/skills/lakehouse-doc/references/quick_start_upload_data.md +69 -0
- package/bin/skills/lakehouse-doc/references/quick_start_user_management.md +73 -0
- package/bin/skills/lakehouse-doc/references/quick_start_workspace.md +72 -0
- package/bin/skills/lakehouse-doc/references/quick_start_workspace_user.md +67 -0
- package/bin/skills/lakehouse-doc/references/quickstart_datashare_between_companies.md +249 -0
- package/bin/skills/lakehouse-doc/references/quickstart_envirment_for_team.md +271 -0
- package/bin/skills/lakehouse-doc/references/quickstart_local_csv.md +99 -0
- package/bin/skills/lakehouse-doc/references/realtime_sync.md +36 -0
- package/bin/skills/lakehouse-doc/references/realtime_sync_and_analysis_practice.md +187 -0
- package/bin/skills/lakehouse-doc/references/realtimesync_m.md +190 -0
- package/bin/skills/lakehouse-doc/references/refresh-history.md +63 -0
- package/bin/skills/lakehouse-doc/references/regexp-statement.md +80 -0
- package/bin/skills/lakehouse-doc/references/releasenotes.md +1 -0
- package/bin/skills/lakehouse-doc/references/releasenotesupdata.md +1 -0
- package/bin/skills/lakehouse-doc/references/remove-volume.md +32 -0
- package/bin/skills/lakehouse-doc/references/restore-dynamic-table.md +126 -0
- package/bin/skills/lakehouse-doc/references/restore.md +127 -0
- package/bin/skills/lakehouse-doc/references/result_cache.md +102 -0
- package/bin/skills/lakehouse-doc/references/revoke-from-share.md +48 -0
- package/bin/skills/lakehouse-doc/references/revoke-user-privileges.md +91 -0
- package/bin/skills/lakehouse-doc/references/right.md +84 -0
- package/bin/skills/lakehouse-doc/references/rlike.md +78 -0
- package/bin/skills/lakehouse-doc/references/rn_2024_11_12.md +63 -0
- package/bin/skills/lakehouse-doc/references/role-privlilige-manage.md +1 -0
- package/bin/skills/lakehouse-doc/references/roles.md +123 -0
- package/bin/skills/lakehouse-doc/references/rom_lakehouse_to_volume.md +1 -0
- package/bin/skills/lakehouse-doc/references/s3_volume_creation.md +37 -0
- package/bin/skills/lakehouse-doc/references/sample-data-using.md +768 -0
- package/bin/skills/lakehouse-doc/references/security_compliance_audit_guide.md +1 -0
- package/bin/skills/lakehouse-doc/references/security_overview.md +41 -0
- package/bin/skills/lakehouse-doc/references/select-catalog-table.md +26 -0
- package/bin/skills/lakehouse-doc/references/semantic_view.md +711 -0
- package/bin/skills/lakehouse-doc/references/setup.md +33 -0
- package/bin/skills/lakehouse-doc/references/share-ddl.md +1 -0
- package/bin/skills/lakehouse-doc/references/show-cached-status.md +34 -0
- package/bin/skills/lakehouse-doc/references/show-catalog-schema.md +48 -0
- package/bin/skills/lakehouse-doc/references/show-catalog-table.md +22 -0
- package/bin/skills/lakehouse-doc/references/show-catalog.md +26 -0
- package/bin/skills/lakehouse-doc/references/show-columns.md +75 -0
- package/bin/skills/lakehouse-doc/references/show-create-dynamic-table.md +44 -0
- package/bin/skills/lakehouse-doc/references/show-create-external-table.md +45 -0
- package/bin/skills/lakehouse-doc/references/show-create-materialized-view.md +43 -0
- package/bin/skills/lakehouse-doc/references/show-create-table.md +107 -0
- package/bin/skills/lakehouse-doc/references/show-dynamic-table.md +68 -0
- package/bin/skills/lakehouse-doc/references/show-external-schemas.md +35 -0
- package/bin/skills/lakehouse-doc/references/show-external-table.md +38 -0
- package/bin/skills/lakehouse-doc/references/show-finctions.md +25 -0
- package/bin/skills/lakehouse-doc/references/show-functions.md +44 -0
- package/bin/skills/lakehouse-doc/references/show-grants-user.md +41 -0
- package/bin/skills/lakehouse-doc/references/show-jobs.md +48 -0
- package/bin/skills/lakehouse-doc/references/show-materialized-view.md +42 -0
- package/bin/skills/lakehouse-doc/references/show-schemas.md +41 -0
- package/bin/skills/lakehouse-doc/references/show-shares.md +94 -0
- package/bin/skills/lakehouse-doc/references/show-synonyms.md +29 -0
- package/bin/skills/lakehouse-doc/references/show-table-streams.md +53 -0
- package/bin/skills/lakehouse-doc/references/show-tables-history.md +91 -0
- package/bin/skills/lakehouse-doc/references/show-tables.md +50 -0
- package/bin/skills/lakehouse-doc/references/show-users.md +46 -0
- package/bin/skills/lakehouse-doc/references/show-vclusters.md +59 -0
- package/bin/skills/lakehouse-doc/references/show-views.md +31 -0
- package/bin/skills/lakehouse-doc/references/show-volume.md +57 -0
- package/bin/skills/lakehouse-doc/references/show.md +168 -0
- package/bin/skills/lakehouse-doc/references/simpletosimple_bazhuayu_datagpt.md +152 -0
- package/bin/skills/lakehouse-doc/references/small_file_optimization.md +101 -0
- package/bin/skills/lakehouse-doc/references/spark-connector-summary.md +329 -0
- package/bin/skills/lakehouse-doc/references/spark-connector-use.md +233 -0
- package/bin/skills/lakehouse-doc/references/sql-parmaters.md +594 -0
- package/bin/skills/lakehouse-doc/references/sql-qualify.md +236 -0
- package/bin/skills/lakehouse-doc/references/sql-reference.md +1 -0
- package/bin/skills/lakehouse-doc/references/sql_data_transfom_NestedDataTypes.md +451 -0
- package/bin/skills/lakehouse-doc/references/sql_data_transform.md +1 -0
- package/bin/skills/lakehouse-doc/references/sql_data_transform_basic.md +576 -0
- package/bin/skills/lakehouse-doc/references/sql_data_transform_cte.md +177 -0
- package/bin/skills/lakehouse-doc/references/sql_data_transform_tips.md +407 -0
- package/bin/skills/lakehouse-doc/references/sql_data_transform_windows.md +430 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/any_value.md +64 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_count_distinct.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_histogram.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_percentile.md +65 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_top_k.md +62 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/avg.md +68 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bit_and.md +81 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bit_or.md +78 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bit_xor.md +79 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bool_and.md +85 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bool_or.md +86 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_list.md +95 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_list_on_array.md +64 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_set.md +85 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_set_on_array.md +80 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/corr.md +103 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/count.md +96 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/count_distinct.md +96 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/count_if.md +62 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/covar_pop.md +89 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/covar_samp.md +113 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/first_value.md +122 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_and.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_and_state.md +47 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_merge.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_merge_state.md +29 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_or.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_or_state.md +64 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_state.md +27 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_xor.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_xor_state.md +99 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_concat.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/last_value.md +100 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/map_agg.md +79 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/max.md +102 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/max_by.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/median.md +60 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/min.md +89 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/min_by.md +99 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/percentile.md +69 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/percentile_approx.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/percentile_rank.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/std.md +47 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/stddev.md +68 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/stddev_pop.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/stddev_samp.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/sum.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/var_pop.md +65 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/var_samp.md +65 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/variance.md +47 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/wm_concat.md +79 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_instance_id.md +16 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_schema.md +29 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_session_id.md +30 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_user.md +29 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_user_id.md +21 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_vcluster.md +40 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_workspace.md +19 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_workspace_id.md +24 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/binary_to_bitmap.md +29 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_and.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_and_cardinality.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_andnot.md +61 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_andnot_cardinality.md +60 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_build.md +58 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_cardinality.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_contains.md +50 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_count.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_empty.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_has_all.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_has_any.md +65 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_hash.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_max.md +26 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_min.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_or.md +61 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_or_cardinality.md +27 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_remove.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_subset_in_range.md +60 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_subset_limit.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_to_array.md +24 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_to_binary.md +28 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_to_string.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_transform.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_xor.md +59 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_xor_cardinality.md +30 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/string_to_bitmap.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/sub_bitmap.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/to_bitmap.md +78 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitwise_functions/bit_count.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitwise_functions/bitnot.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/assert_true.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/between.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/case_when.md +99 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/coalesce.md +51 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/decode.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/if.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/in.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_false.md +63 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_not_null.md +40 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_null.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_true.md +63 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/multiif.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/nvl.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/raise_error.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/add_days.md +65 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/add_months.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/add_years.md +61 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/adddate.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/convert_timezone.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/current_date.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/current_timestamp.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_add.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_format.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_format_mysql.md +58 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_format_pg.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_sub.md +58 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_trunc.md +61 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dateadd.md +60 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/datediff.md +50 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/datetime_patterns.md +61 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/day.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofmonth.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofweek.md +31 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofweek_iso.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofyear.md +40 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/days.md +21 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/extract.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/from_unixtime.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/from_utc_timestamp.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/hour.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/hours.md +21 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/last_day.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/localtimestamp.md +19 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/makde_date.md +20 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/make_date.md +20 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/make_dt_interval.md +66 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/make_ym_interval.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/minute.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/month.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/months.md +21 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/months_between.md +18 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/next_day.md +16 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/now.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/quarter.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/second.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/str_to_date_mysql.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/sub_days.md +66 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestamp_micros.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestamp_millis.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestamp_seconds.md +62 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestampadd.md +59 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestampdiff.md +78 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_date.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_start_of_interval.md +25 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_timestamp.md +66 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_timestamp_ntz.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_unix_timestamp.md +59 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_unix_timestamp_ms.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_unix_timestamp_us.md +40 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_utc_timestamp.md +62 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/toyyyymmdd.md +69 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/trunc.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/unix_timestamp.md +96 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/week.md +31 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/weekday.md +51 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/weekofyear.md +29 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/year.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/yearofweek.md +64 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/years.md +21 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/geo_functions/st_geohash.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/geo_functions/st_latfromgeohash.md +59 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/geo_functions/st_longfromgeohash.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/bucket.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/general_hash.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/hash_combine.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/hash_combine_commutative.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/murmurhash.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/array_sort_by_key.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/element_at.md +59 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/exists.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/filter.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/forall.md +68 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/high_order_functions.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/map_filter.md +25 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/map_zip_with.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/transform.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/transform_keys.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/transform_values.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/zip_with.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/get_ip_info.md +199 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv4_num_to_string.md +29 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv4_string_to_num.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv6_num_to_string.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv6_string_to_num.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/is_ip_address_in_range.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/from_json.md +86 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/get_json_object.md +83 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_array.md +30 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_contains.md +86 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_extract.md +64 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_minify.md +28 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_normalize.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_object.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_parse.md +59 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_remove.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_type.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_valid.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/schema_of_json.md +79 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/to_json.md +68 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/abs.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/acos.md +30 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/acosh.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/asin.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/asinh.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/atan.md +27 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/atan2.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/atanh.md +24 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/bround.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cbrt.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/ceil.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/ceilling.md +47 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cos.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cosh.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cot.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/csc.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/degrees.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/div.md +28 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/e.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/exp.md +32 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/exp2.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/expm1.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/floor.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/greatest.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/hypot.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/isnan.md +27 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/least.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/ln.md +57 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log10.md +47 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log1p.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log2.md +28 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/median.md +25 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/mod.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/monotonically_increasing_id.md +81 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/negative.md +15 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/operators.md +427 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/pi.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/pmod.md +31 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/positive.md +15 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/pow.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/radians.md +30 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/rand.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/randn.md +26 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/random.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/round.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/shiftleft.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/shiftright.md +70 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/shiftrightunsigned.md +70 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sign.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sin.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sinh.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sqrt.md +40 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/tan.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/tanh.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_append.md +26 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_compact.md +29 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_contains.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_distinct.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_except.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_intersect.md +39 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_join.md +51 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_max.md +57 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_min.md +60 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_position.md +50 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_prepend.md +26 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_remove.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_repeat.md +51 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_size.md +32 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_sort.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_sort_reverse.md +31 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_union.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/arrays_overlap.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/arrays_zip.md +50 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/cardinality.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/concat.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/concat_ws.md +73 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/element_at.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/flatten.md +62 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_concat.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_contains_key.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_entries.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_equal.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_except.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_from_arrays.md +28 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_from_entries.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_keys.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_values.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/multimap_from_entries.md +47 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/named_struct.md +55 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/sequence.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/size.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/slice.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/sort_array.md +22 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/struct.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/struct_insert.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/struct_update.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/trans_array.md +147 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/partition/max_pt.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_all.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_any.md +50 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_phrase.md +65 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_phrase_prefix.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_regexp.md +30 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/tokenize.md +57 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_decrypt.md +40 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_decrypt_mysql.md +30 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_encrypt.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_encrypt_mysql.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/ascii.md +36 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/base64.md +27 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/binary.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/btrim.md +38 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/char.md +55 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/char_length.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/character_length.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/chr.md +26 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/collation_sort_key.md +58 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/concat.md +75 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/concat_ws.md +72 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/contains.md +31 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/conv.md +50 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/endswith.md +70 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/find_in_set.md +19 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/format_string.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/hex.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/instr.md +41 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/is_ascii.md +27 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/is_utf8.md +27 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lcase.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/left.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/length.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lengthb.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/like.md +63 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/locate.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lower.md +61 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lpad.md +45 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/ltrim.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/mask.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/md5.md +71 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/octet_length.md +47 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/parse_url.md +78 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/position.md +35 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_count.md +115 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_extract.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_extract_all.md +31 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_instr.md +152 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_replace.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/repeat.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/replace.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/reverse.md +70 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/right.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/rlike.md +64 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/rpad.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/rtrim.md +37 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/sha1.md +67 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/space.md +34 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/split.md +61 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/split_part.md +42 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/startswith.md +70 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/str_to_map.md +60 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/strpos.md +60 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/substr.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/substring.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/substring_index.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/translate.md +43 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/trim.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/typeof.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/ucase.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/unbase64.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/unhex.md +46 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/upper.md +51 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/url_decode.md +32 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/url_encode.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/uuid.md +33 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/binary_quantize.md +51 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/cosine_distance.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/dot_product.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/hamming_distance.md +57 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/jaccard_distance.md +55 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/l2_distance.md +53 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/l2_norm.md +52 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/l2_normalize.md +54 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/print_vector_bits.md +56 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/vector.md +70 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/vector_add_scalar.md +57 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/explode.md +71 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/inline.md +48 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/json_tuple.md +44 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/load_history.md +17 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/posexplode.md +89 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/read_kafka.md +85 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/stack.md +69 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/table_changes.md +136 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/unnset.md +106 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/avg.md +91 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/count.md +88 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/cume_dist.md +104 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/dense_rank.md +119 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/first.md +159 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/first_value.md +133 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/lag.md +72 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/last.md +166 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/last_value.md +160 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/lead.md +49 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/max.md +167 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/min.md +138 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/nth_value.md +58 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/ntile.md +57 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/percent_rank.md +58 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/rank.md +139 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/row_number.md +141 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/sum.md +105 -0
- package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/window_clause.md +91 -0
- package/bin/skills/lakehouse-doc/references/sql_practice.md +1 -0
- package/bin/skills/lakehouse-doc/references/sql_rfm.md +181 -0
- package/bin/skills/lakehouse-doc/references/sqlalchemy.md +82 -0
- package/bin/skills/lakehouse-doc/references/ssb-benchmark.md +224 -0
- package/bin/skills/lakehouse-doc/references/sso-configuration.md +157 -0
- package/bin/skills/lakehouse-doc/references/storage_encryption.md +81 -0
- package/bin/skills/lakehouse-doc/references/streaming_data_pipeline_overview.md +20 -0
- package/bin/skills/lakehouse-doc/references/streaming_data_pipeline_overview1.md +1 -0
- package/bin/skills/lakehouse-doc/references/streaming_pipeline_with_dynamic_table.md +66 -0
- package/bin/skills/lakehouse-doc/references/structure_data_analysis.md +229 -0
- package/bin/skills/lakehouse-doc/references/studio_manual.md +1 -0
- package/bin/skills/lakehouse-doc/references/studio_overview.md +71 -0
- package/bin/skills/lakehouse-doc/references/synonym.md +139 -0
- package/bin/skills/lakehouse-doc/references/table-stream-title.md +1 -0
- package/bin/skills/lakehouse-doc/references/table-stream.md +1 -0
- package/bin/skills/lakehouse-doc/references/table-summary.md +1 -0
- package/bin/skills/lakehouse-doc/references/table_funciotn.md +1 -0
- package/bin/skills/lakehouse-doc/references/table_stream.md +118 -0
- package/bin/skills/lakehouse-doc/references/tablesample.md +474 -0
- package/bin/skills/lakehouse-doc/references/tablestream_summary.md +515 -0
- package/bin/skills/lakehouse-doc/references/task-instance-maintenance.md +207 -0
- package/bin/skills/lakehouse-doc/references/task_development.md +56 -0
- package/bin/skills/lakehouse-doc/references/task_group.md +151 -0
- package/bin/skills/lakehouse-doc/references/task_param.md +978 -0
- package/bin/skills/lakehouse-doc/references/task_scheduling.md +1 -0
- package/bin/skills/lakehouse-doc/references/task_scheduling_dependency.md +74 -0
- package/bin/skills/lakehouse-doc/references/taskdevelop.md +268 -0
- package/bin/skills/lakehouse-doc/references/tencentcloud_arn_and_externalid.md +29 -0
- package/bin/skills/lakehouse-doc/references/time-function.md +67 -0
- package/bin/skills/lakehouse-doc/references/timetravel-summary.md +47 -0
- package/bin/skills/lakehouse-doc/references/tools_AI.md +1 -0
- package/bin/skills/lakehouse-doc/references/tools_BI.md +1 -0
- package/bin/skills/lakehouse-doc/references/tpcds-benchmark.md +754 -0
- package/bin/skills/lakehouse-doc/references/tpch-benchmark.md +887 -0
- package/bin/skills/lakehouse-doc/references/transformt-dt.md +291 -0
- package/bin/skills/lakehouse-doc/references/trial-account-quotas-and-limits.md +81 -0
- package/bin/skills/lakehouse-doc/references/tutorial_DataGPT.md +1 -0
- package/bin/skills/lakehouse-doc/references/tutorial_connect_to_lakehouse.md +1 -0
- package/bin/skills/lakehouse-doc/references/tutorial_data_transformation.md +1 -0
- package/bin/skills/lakehouse-doc/references/tutorial_migration.md +1 -0
- package/bin/skills/lakehouse-doc/references/tutorial_virtual_cluster.md +1 -0
- package/bin/skills/lakehouse-doc/references/tutorial_work_with_workspace.md +1 -0
- package/bin/skills/lakehouse-doc/references/tutorial_zettapark.md +1 -0
- package/bin/skills/lakehouse-doc/references/tutorials-streaming-data-pipeline-with_dynamic-table.md +124 -0
- package/bin/skills/lakehouse-doc/references/undrop-dynamic-table.md +79 -0
- package/bin/skills/lakehouse-doc/references/undrop-materialized-view.md +80 -0
- package/bin/skills/lakehouse-doc/references/unifiedWorkflow.md +1 -0
- package/bin/skills/lakehouse-doc/references/unloa-data-summary.md +17 -0
- package/bin/skills/lakehouse-doc/references/unload-data-local.md +72 -0
- package/bin/skills/lakehouse-doc/references/unstructure_data_analysis.md +1 -0
- package/bin/skills/lakehouse-doc/references/unstructured_etl_pipeline_notebook.md +12 -0
- package/bin/skills/lakehouse-doc/references/unstructured_etl_pipeline_user_guide.md +949 -0
- package/bin/skills/lakehouse-doc/references/unstructured_etl_python_api.md +896 -0
- package/bin/skills/lakehouse-doc/references/upload-data.md +1 -0
- package/bin/skills/lakehouse-doc/references/upload_data.md +123 -0
- package/bin/skills/lakehouse-doc/references/use-dbt-dev.md +441 -0
- package/bin/skills/lakehouse-doc/references/use-external-schema.md +42 -0
- package/bin/skills/lakehouse-doc/references/use-java-sdk-releatime-uploaddata.md +168 -0
- package/bin/skills/lakehouse-doc/references/use-java-sdk-upload-dta-local.md +140 -0
- package/bin/skills/lakehouse-doc/references/use-mysql-client.md +189 -0
- package/bin/skills/lakehouse-doc/references/use-python-sdk-upload-data.md +99 -0
- package/bin/skills/lakehouse-doc/references/use-schema.md +49 -0
- package/bin/skills/lakehouse-doc/references/use-vcluster.md +38 -0
- package/bin/skills/lakehouse-doc/references/user-aggrement.md +229 -0
- package/bin/skills/lakehouse-doc/references/user-external-funciton.md +1 -0
- package/bin/skills/lakehouse-doc/references/user-identification.md +58 -0
- package/bin/skills/lakehouse-doc/references/user_permission_grand_guide.md +322 -0
- package/bin/skills/lakehouse-doc/references/using-google-authenticator.md +48 -0
- package/bin/skills/lakehouse-doc/references/using-udf-in-dynamic-table.md +162 -0
- package/bin/skills/lakehouse-doc/references/using_mcp_solute_data_pipeline_issue.md +343 -0
- package/bin/skills/lakehouse-doc/references/uuid.md +47 -0
- package/bin/skills/lakehouse-doc/references/validate_schema_evolution.md +167 -0
- package/bin/skills/lakehouse-doc/references/vc-job.md +1 -0
- package/bin/skills/lakehouse-doc/references/vc_cache.md +71 -0
- package/bin/skills/lakehouse-doc/references/vcluster_size_description.md +98 -0
- package/bin/skills/lakehouse-doc/references/vector-search.md +144 -0
- package/bin/skills/lakehouse-doc/references/vector-type.md +52 -0
- package/bin/skills/lakehouse-doc/references/vector_data_process_guide.md +952 -0
- package/bin/skills/lakehouse-doc/references/vector_search_ai.md +423 -0
- package/bin/skills/lakehouse-doc/references/version-update.md +21 -0
- package/bin/skills/lakehouse-doc/references/virtual-cluster.md +221 -0
- package/bin/skills/lakehouse-doc/references/volume_best_practices.md +1141 -0
- package/bin/skills/lakehouse-doc/references/web-job-history.md +163 -0
- package/bin/skills/lakehouse-doc/references/what_is_clickzetta_lakehouse.md +92 -0
- package/bin/skills/lakehouse-doc/references/window-function-summary.md +134 -0
- package/bin/skills/lakehouse-doc/references/windowframe.md +139 -0
- package/bin/skills/lakehouse-doc/references/working_with_Vclusters.md +171 -0
- package/bin/skills/lakehouse-doc/references/working_with_cache.md +102 -0
- package/bin/skills/lakehouse-doc/references/worksapce-informaiton_schema-views.md +207 -0
- package/bin/skills/lakehouse-doc/references/worksheet.md +15 -0
- package/bin/skills/lakehouse-doc/references/workspace-introduction.md +41 -0
- package/bin/skills/lakehouse-doc/references/worskapce-infroamtionschema-summary.md +56 -0
- package/package.json +13 -0
|
@@ -0,0 +1,1260 @@
|
|
|
1
|
+
# GROUP BY
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
`GROUP BY` 子句是 SQL 查询中用于数据分组和聚合分析的核心组件。通过 `GROUP BY`,可以将数据集按照指定的列或表达式进行分组,并对每个分组应用聚合函数(如 `SUM()`、`COUNT()`、`AVG()`、`MAX()`、`MIN()` 等)计算汇总值。
|
|
6
|
+
|
|
7
|
+
云器 Lakehouse 完整支持标准 SQL GROUP BY 语法,并提供高级聚合能力:
|
|
8
|
+
|
|
9
|
+
| 功能 | 说明 | 应用场景 |
|
|
10
|
+
| ----------------- | ---------- | -------------- |
|
|
11
|
+
| **标准 GROUP BY** | 基础分组聚合 | 日常统计、基础报表 |
|
|
12
|
+
| **GROUPING SETS** | 自定义多个分组集合 | 多维度业务分析 |
|
|
13
|
+
| **ROLLUP** | 层级汇总(从细到总) | 财务报表、销售层级分析 |
|
|
14
|
+
| **CUBE** | 全维度交叉分析 | BI 多维数据透视、交叉分析 |
|
|
15
|
+
|
|
16
|
+
***
|
|
17
|
+
|
|
18
|
+
## 语法结构
|
|
19
|
+
|
|
20
|
+
```sql
|
|
21
|
+
SELECT
|
|
22
|
+
column1,
|
|
23
|
+
column2,
|
|
24
|
+
aggregate_function(column3) AS alias
|
|
25
|
+
FROM table_name
|
|
26
|
+
WHERE condition
|
|
27
|
+
GROUP BY
|
|
28
|
+
[ group_expression [, group_expression, ...] |
|
|
29
|
+
GROUPING SETS (grouping_set [, grouping_set, ...]) |
|
|
30
|
+
ROLLUP(expression [, expression, ...]) |
|
|
31
|
+
CUBE(expression [, expression, ...]) ]
|
|
32
|
+
HAVING aggregate_condition
|
|
33
|
+
ORDER BY column
|
|
34
|
+
LIMIT n;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 关键要点
|
|
38
|
+
|
|
39
|
+
1. **SELECT 子句约束**:SELECT 列表中的非聚合列必须出现在 GROUP BY 子句中
|
|
40
|
+
2. **执行顺序**:FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY → LIMIT
|
|
41
|
+
3. **HAVING 过滤**:用于过滤聚合结果,而 WHERE 过滤原始行
|
|
42
|
+
4. **NULL 值处理**:NULL 被视为一个独立的分组
|
|
43
|
+
|
|
44
|
+
***
|
|
45
|
+
|
|
46
|
+
## 准备测试数据
|
|
47
|
+
|
|
48
|
+
本文档使用汽车经销商销售数据作为示例。创建测试视图:
|
|
49
|
+
|
|
50
|
+
```sql
|
|
51
|
+
CREATE OR REPLACE VIEW dealer (id, city, car_model, quantity) AS
|
|
52
|
+
VALUES
|
|
53
|
+
(100, 'Fremont', 'Honda Civic', 10),
|
|
54
|
+
(100, 'Fremont', 'Honda Accord', 15),
|
|
55
|
+
(100, 'Fremont', 'Honda CRV', 7),
|
|
56
|
+
(200, 'Dublin', 'Honda Civic', 20),
|
|
57
|
+
(200, 'Dublin', 'Honda Accord', 10),
|
|
58
|
+
(200, 'Dublin', 'Honda CRV', 3),
|
|
59
|
+
(300, 'San Jose', 'Honda Civic', 5),
|
|
60
|
+
(300, 'San Jose', 'Honda Accord', 8);
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
查看原始数据:
|
|
64
|
+
|
|
65
|
+
```sql
|
|
66
|
+
SELECT * FROM dealer ORDER BY id, car_model LIMIT 50;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**查询结果**:
|
|
70
|
+
|
|
71
|
+
| id | city | car\_model | quantity |
|
|
72
|
+
| --- | -------- | ------------ | -------- |
|
|
73
|
+
| 100 | Fremont | Honda Accord | 15 |
|
|
74
|
+
| 100 | Fremont | Honda CRV | 7 |
|
|
75
|
+
| 100 | Fremont | Honda Civic | 10 |
|
|
76
|
+
| 200 | Dublin | Honda Accord | 10 |
|
|
77
|
+
| 200 | Dublin | Honda CRV | 3 |
|
|
78
|
+
| 200 | Dublin | Honda Civic | 20 |
|
|
79
|
+
| 300 | San Jose | Honda Accord | 8 |
|
|
80
|
+
| 300 | San Jose | Honda Civic | 5 |
|
|
81
|
+
|
|
82
|
+
***
|
|
83
|
+
|
|
84
|
+
## 一、标准 GROUP BY
|
|
85
|
+
|
|
86
|
+
### 1.1 单列分组
|
|
87
|
+
|
|
88
|
+
按经销商 ID 分组,统计每个经销商的销量:
|
|
89
|
+
|
|
90
|
+
```sql
|
|
91
|
+
SELECT
|
|
92
|
+
id,
|
|
93
|
+
SUM(quantity) AS total_quantity
|
|
94
|
+
FROM dealer
|
|
95
|
+
GROUP BY id
|
|
96
|
+
ORDER BY id
|
|
97
|
+
LIMIT 50;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**查询结果**:
|
|
101
|
+
|
|
102
|
+
| id | total\_quantity |
|
|
103
|
+
| --- | --------------- |
|
|
104
|
+
| 100 | 32 |
|
|
105
|
+
| 200 | 33 |
|
|
106
|
+
| 300 | 13 |
|
|
107
|
+
|
|
108
|
+
**业务解读**:
|
|
109
|
+
|
|
110
|
+
* 经销商 100(Fremont)销售了 32 辆车
|
|
111
|
+
* 经销商 200(Dublin)销售了 33 辆车
|
|
112
|
+
* 经销商 300(San Jose)销售了 13 辆车
|
|
113
|
+
|
|
114
|
+
***
|
|
115
|
+
|
|
116
|
+
### 1.2 多列分组
|
|
117
|
+
|
|
118
|
+
按城市和车型的组合进行分组统计:
|
|
119
|
+
|
|
120
|
+
```sql
|
|
121
|
+
SELECT
|
|
122
|
+
id,
|
|
123
|
+
city,
|
|
124
|
+
SUM(quantity) AS total_quantity
|
|
125
|
+
FROM dealer
|
|
126
|
+
GROUP BY id, city
|
|
127
|
+
ORDER BY total_quantity DESC
|
|
128
|
+
LIMIT 50;
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**查询结果**:
|
|
132
|
+
|
|
133
|
+
| id | city | total\_quantity |
|
|
134
|
+
| --- | -------- | --------------- |
|
|
135
|
+
| 200 | Dublin | 33 |
|
|
136
|
+
| 100 | Fremont | 32 |
|
|
137
|
+
| 300 | San Jose | 13 |
|
|
138
|
+
|
|
139
|
+
在本示例中,每个经销商 ID 对应唯一的城市,因此结果与单列分组相同。
|
|
140
|
+
|
|
141
|
+
***
|
|
142
|
+
|
|
143
|
+
### 1.3 使用表达式分组
|
|
144
|
+
|
|
145
|
+
使用 `CASE` 表达式对销量进行分段统计:
|
|
146
|
+
|
|
147
|
+
```sql
|
|
148
|
+
SELECT
|
|
149
|
+
CASE
|
|
150
|
+
WHEN quantity < 10 THEN 'Low (< 10)'
|
|
151
|
+
WHEN quantity < 15 THEN 'Medium (10-14)'
|
|
152
|
+
ELSE 'High (>= 15)'
|
|
153
|
+
END AS sales_level,
|
|
154
|
+
COUNT(*) AS record_count,
|
|
155
|
+
SUM(quantity) AS total_quantity
|
|
156
|
+
FROM dealer
|
|
157
|
+
GROUP BY
|
|
158
|
+
CASE
|
|
159
|
+
WHEN quantity < 10 THEN 'Low (< 10)'
|
|
160
|
+
WHEN quantity < 15 THEN 'Medium (10-14)'
|
|
161
|
+
ELSE 'High (>= 15)'
|
|
162
|
+
END
|
|
163
|
+
ORDER BY sales_level
|
|
164
|
+
LIMIT 50;
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**查询结果**:
|
|
168
|
+
|
|
169
|
+
| sales\_level | record\_count | total\_quantity |
|
|
170
|
+
| -------------- | ------------- | --------------- |
|
|
171
|
+
| High (>= 15) | 2 | 35 |
|
|
172
|
+
| Low (< 10) | 4 | 23 |
|
|
173
|
+
| Medium (10-14) | 2 | 20 |
|
|
174
|
+
|
|
175
|
+
**业务解读**:
|
|
176
|
+
|
|
177
|
+
* 高销量记录(≥15 辆):2 条记录,共 35 辆
|
|
178
|
+
* 低销量记录(<10 辆):4 条记录,共 23 辆
|
|
179
|
+
* 中等销量记录(10-14 辆):2 条记录,共 20 辆
|
|
180
|
+
|
|
181
|
+
***
|
|
182
|
+
|
|
183
|
+
### 1.4 全局聚合(无分组)
|
|
184
|
+
|
|
185
|
+
不使用 GROUP BY 时,对整个表进行全局聚合:
|
|
186
|
+
|
|
187
|
+
```sql
|
|
188
|
+
SELECT SUM(quantity) AS total_quantity
|
|
189
|
+
FROM dealer
|
|
190
|
+
LIMIT 50;
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**查询结果**:
|
|
194
|
+
|
|
195
|
+
| total\_quantity |
|
|
196
|
+
| --------------- |
|
|
197
|
+
| 78 |
|
|
198
|
+
|
|
199
|
+
全部 8 条记录的总销量为 78 辆。
|
|
200
|
+
|
|
201
|
+
***
|
|
202
|
+
|
|
203
|
+
## 二、多聚合函数组合
|
|
204
|
+
|
|
205
|
+
### 2.1 常用聚合函数汇总
|
|
206
|
+
|
|
207
|
+
在单次查询中使用多个聚合函数:
|
|
208
|
+
|
|
209
|
+
```sql
|
|
210
|
+
SELECT
|
|
211
|
+
city,
|
|
212
|
+
COUNT(*) AS model_count,
|
|
213
|
+
SUM(quantity) AS total_quantity,
|
|
214
|
+
AVG(quantity) AS avg_quantity,
|
|
215
|
+
MAX(quantity) AS max_quantity,
|
|
216
|
+
MIN(quantity) AS min_quantity
|
|
217
|
+
FROM dealer
|
|
218
|
+
GROUP BY city
|
|
219
|
+
ORDER BY total_quantity DESC
|
|
220
|
+
LIMIT 50;
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
**查询结果**:
|
|
224
|
+
|
|
225
|
+
| city | model\_count | total\_quantity | avg\_quantity | max\_quantity | min\_quantity |
|
|
226
|
+
| -------- | ------------ | --------------- | ------------------ | ------------- | ------------- |
|
|
227
|
+
| Dublin | 3 | 33 | 11.0 | 20 | 3 |
|
|
228
|
+
| Fremont | 3 | 32 | 10.666666666666666 | 15 | 7 |
|
|
229
|
+
| San Jose | 2 | 13 | 6.5 | 8 | 5 |
|
|
230
|
+
|
|
231
|
+
**业务洞察**:
|
|
232
|
+
|
|
233
|
+
* **Dublin**:3 个车型,平均每个车型销售 11 辆,最高单品 20 辆(Honda Civic)
|
|
234
|
+
* **Fremont**:3 个车型,平均销量 10.67 辆,销量较均衡
|
|
235
|
+
* **San Jose**:仅 2 个车型,平均销量 6.5 辆,市场规模最小
|
|
236
|
+
|
|
237
|
+
***
|
|
238
|
+
|
|
239
|
+
### 2.2 按车型统计覆盖城市数
|
|
240
|
+
|
|
241
|
+
统计每个车型在多少个城市有销售:
|
|
242
|
+
|
|
243
|
+
```sql
|
|
244
|
+
SELECT
|
|
245
|
+
car_model,
|
|
246
|
+
SUM(quantity) AS total_sales,
|
|
247
|
+
COUNT(DISTINCT city) AS city_count,
|
|
248
|
+
ROUND(AVG(quantity), 2) AS avg_per_dealer
|
|
249
|
+
FROM dealer
|
|
250
|
+
GROUP BY car_model
|
|
251
|
+
ORDER BY total_sales DESC
|
|
252
|
+
LIMIT 50;
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
**查询结果**:
|
|
256
|
+
|
|
257
|
+
| car\_model | total\_sales | city\_count | avg\_per\_dealer |
|
|
258
|
+
| ------------ | ------------ | ----------- | ---------------- |
|
|
259
|
+
| Honda Civic | 35 | 3 | 11.67 |
|
|
260
|
+
| Honda Accord | 33 | 3 | 11.00 |
|
|
261
|
+
| Honda CRV | 10 | 2 | 5.00 |
|
|
262
|
+
|
|
263
|
+
**业务洞察**:
|
|
264
|
+
|
|
265
|
+
* **Honda Civic**:最畅销车型,总销量 35 辆,覆盖 3 个城市,平均每地 11.67 辆
|
|
266
|
+
* **Honda Accord**:总销量 33 辆,覆盖 3 个城市
|
|
267
|
+
* **Honda CRV**:总销量最低,仅在 2 个城市有销售(未进入 San Jose 市场)
|
|
268
|
+
|
|
269
|
+
***
|
|
270
|
+
|
|
271
|
+
## 三、GROUPING SETS(自定义分组集合)
|
|
272
|
+
|
|
273
|
+
### 3.1 基本概念
|
|
274
|
+
|
|
275
|
+
`GROUPING SETS` 允许在一次查询中同时生成多个不同维度的分组结果。它本质上是多个 `GROUP BY` 查询通过 `UNION ALL` 组合的简写形式。
|
|
276
|
+
|
|
277
|
+
**语法**:
|
|
278
|
+
|
|
279
|
+
```sql
|
|
280
|
+
GROUP BY GROUPING SETS (
|
|
281
|
+
(column1, column2), -- 分组集1:按 column1 和 column2 分组
|
|
282
|
+
(column1), -- 分组集2:仅按 column1 分组
|
|
283
|
+
() -- 分组集3:全局聚合(无分组)
|
|
284
|
+
)
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
***
|
|
288
|
+
|
|
289
|
+
### 3.2 多维度聚合分析
|
|
290
|
+
|
|
291
|
+
在一次查询中生成四个维度的统计结果:
|
|
292
|
+
|
|
293
|
+
```sql
|
|
294
|
+
SELECT
|
|
295
|
+
city,
|
|
296
|
+
car_model,
|
|
297
|
+
SUM(quantity) AS total_quantity
|
|
298
|
+
FROM dealer
|
|
299
|
+
GROUP BY GROUPING SETS (
|
|
300
|
+
(city, car_model), -- 城市+车型明细
|
|
301
|
+
(city), -- 按城市汇总
|
|
302
|
+
(car_model), -- 按车型汇总
|
|
303
|
+
() -- 总计
|
|
304
|
+
)
|
|
305
|
+
ORDER BY city, car_model
|
|
306
|
+
LIMIT 50;
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
**查询结果**:
|
|
310
|
+
|
|
311
|
+
| city | car\_model | total\_quantity |
|
|
312
|
+
| -------- | ------------ | --------------- |
|
|
313
|
+
| NULL | NULL | 78 |
|
|
314
|
+
| NULL | Honda Accord | 33 |
|
|
315
|
+
| NULL | Honda CRV | 10 |
|
|
316
|
+
| NULL | Honda Civic | 35 |
|
|
317
|
+
| Dublin | NULL | 33 |
|
|
318
|
+
| Dublin | Honda Accord | 10 |
|
|
319
|
+
| Dublin | Honda CRV | 3 |
|
|
320
|
+
| Dublin | Honda Civic | 20 |
|
|
321
|
+
| Fremont | NULL | 32 |
|
|
322
|
+
| Fremont | Honda Accord | 15 |
|
|
323
|
+
| Fremont | Honda CRV | 7 |
|
|
324
|
+
| Fremont | Honda Civic | 10 |
|
|
325
|
+
| San Jose | NULL | 13 |
|
|
326
|
+
| San Jose | Honda Accord | 8 |
|
|
327
|
+
| San Jose | Honda Civic | 5 |
|
|
328
|
+
|
|
329
|
+
**结果解读**:
|
|
330
|
+
|
|
331
|
+
* **总计行**(city=NULL, car\_model=NULL):全部销量 78 辆
|
|
332
|
+
* **车型汇总行**(city=NULL, car\_model有值):各车型跨城市总销量
|
|
333
|
+
* **城市汇总行**(city有值, car\_model=NULL):各城市跨车型总销量
|
|
334
|
+
* **明细行**(city和car\_model都有值):城市+车型组合的具体销量
|
|
335
|
+
|
|
336
|
+
**等价查询**:
|
|
337
|
+
|
|
338
|
+
```sql
|
|
339
|
+
-- GROUPING SETS 等价于以下 UNION ALL 查询
|
|
340
|
+
SELECT city, car_model, SUM(quantity) FROM dealer GROUP BY city, car_model
|
|
341
|
+
UNION ALL
|
|
342
|
+
SELECT city, NULL, SUM(quantity) FROM dealer GROUP BY city
|
|
343
|
+
UNION ALL
|
|
344
|
+
SELECT NULL, car_model, SUM(quantity) FROM dealer GROUP BY car_model
|
|
345
|
+
UNION ALL
|
|
346
|
+
SELECT NULL, NULL, SUM(quantity) FROM dealer;
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
**性能优势**:`GROUPING SETS` 在内部只扫描一次数据,比 `UNION ALL` 更高效。
|
|
350
|
+
|
|
351
|
+
***
|
|
352
|
+
|
|
353
|
+
### 3.3 识别汇总层级
|
|
354
|
+
|
|
355
|
+
使用 `COALESCE` 函数替换 NULL 值,使汇总行更易读:
|
|
356
|
+
|
|
357
|
+
```sql
|
|
358
|
+
SELECT
|
|
359
|
+
COALESCE(city, 'All Cities') AS city,
|
|
360
|
+
COALESCE(car_model, 'All Models') AS car_model,
|
|
361
|
+
SUM(quantity) AS total_quantity
|
|
362
|
+
FROM dealer
|
|
363
|
+
GROUP BY ROLLUP(city, car_model)
|
|
364
|
+
ORDER BY city, car_model
|
|
365
|
+
LIMIT 50;
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
**查询结果**:
|
|
369
|
+
|
|
370
|
+
| city | car\_model | total\_quantity |
|
|
371
|
+
| ---------- | ------------ | --------------- |
|
|
372
|
+
| All Cities | All Models | 78 |
|
|
373
|
+
| Dublin | All Models | 33 |
|
|
374
|
+
| Dublin | Honda Accord | 10 |
|
|
375
|
+
| Dublin | Honda CRV | 3 |
|
|
376
|
+
| Dublin | Honda Civic | 20 |
|
|
377
|
+
| Fremont | All Models | 32 |
|
|
378
|
+
| Fremont | Honda Accord | 15 |
|
|
379
|
+
| Fremont | Honda CRV | 7 |
|
|
380
|
+
| Fremont | Honda Civic | 10 |
|
|
381
|
+
| San Jose | All Models | 13 |
|
|
382
|
+
| San Jose | Honda Accord | 8 |
|
|
383
|
+
| San Jose | Honda Civic | 5 |
|
|
384
|
+
|
|
385
|
+
***
|
|
386
|
+
|
|
387
|
+
## 四、ROLLUP(层级汇总)
|
|
388
|
+
|
|
389
|
+
### 4.1 基本概念
|
|
390
|
+
|
|
391
|
+
`ROLLUP` 用于生成从细粒度到全局的层级汇总。对于 `ROLLUP(a, b, c)`,将生成以下分组集:
|
|
392
|
+
|
|
393
|
+
* `(a, b, c)` - 最细粒度
|
|
394
|
+
* `(a, b)` - 中间层级
|
|
395
|
+
* `(a)` - 高层级
|
|
396
|
+
* `()` - 全局汇总
|
|
397
|
+
|
|
398
|
+
**等价关系**:
|
|
399
|
+
|
|
400
|
+
```sql
|
|
401
|
+
ROLLUP(city, car_model)
|
|
402
|
+
-- 等价于
|
|
403
|
+
GROUPING SETS (
|
|
404
|
+
(city, car_model),
|
|
405
|
+
(city),
|
|
406
|
+
()
|
|
407
|
+
)
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
***
|
|
411
|
+
|
|
412
|
+
### 4.2 销售层级汇总
|
|
413
|
+
|
|
414
|
+
生成"城市→车型"两级汇总:
|
|
415
|
+
|
|
416
|
+
```sql
|
|
417
|
+
SELECT
|
|
418
|
+
city,
|
|
419
|
+
car_model,
|
|
420
|
+
SUM(quantity) AS total_quantity
|
|
421
|
+
FROM dealer
|
|
422
|
+
GROUP BY ROLLUP(city, car_model)
|
|
423
|
+
LIMIT 50;
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
**查询结果**:
|
|
427
|
+
|
|
428
|
+
| city | car\_model | total\_quantity |
|
|
429
|
+
| -------- | ------------ | --------------- |
|
|
430
|
+
| Fremont | Honda Civic | 10 |
|
|
431
|
+
| Fremont | Honda Accord | 15 |
|
|
432
|
+
| Fremont | Honda CRV | 7 |
|
|
433
|
+
| Dublin | Honda Civic | 20 |
|
|
434
|
+
| Dublin | Honda Accord | 10 |
|
|
435
|
+
| Dublin | Honda CRV | 3 |
|
|
436
|
+
| San Jose | Honda Civic | 5 |
|
|
437
|
+
| San Jose | Honda Accord | 8 |
|
|
438
|
+
| Fremont | NULL | 32 |
|
|
439
|
+
| Dublin | NULL | 33 |
|
|
440
|
+
| San Jose | NULL | 13 |
|
|
441
|
+
| NULL | NULL | 78 |
|
|
442
|
+
|
|
443
|
+
**数据层级**:
|
|
444
|
+
|
|
445
|
+
1. **明细层**(前8行):每个城市的每种车型的销量
|
|
446
|
+
2. **城市小计**(car\_model=NULL):每个城市的总销量
|
|
447
|
+
3. **总计**(city=NULL, car\_model=NULL):所有城市的总销量
|
|
448
|
+
|
|
449
|
+
***
|
|
450
|
+
|
|
451
|
+
### 4.3 使用 GROUPING() 函数标识层级
|
|
452
|
+
|
|
453
|
+
`GROUPING()` 函数返回 0 或 1,用于区分真实 NULL 和聚合标记:
|
|
454
|
+
|
|
455
|
+
* **返回 0**:该列参与分组,值为实际数据
|
|
456
|
+
* **返回 1**:该列未参与分组,NULL 表示汇总
|
|
457
|
+
|
|
458
|
+
```sql
|
|
459
|
+
SELECT
|
|
460
|
+
city,
|
|
461
|
+
car_model,
|
|
462
|
+
SUM(quantity) AS total_quantity,
|
|
463
|
+
GROUPING(city) AS city_grouping,
|
|
464
|
+
GROUPING(car_model) AS model_grouping
|
|
465
|
+
FROM dealer
|
|
466
|
+
GROUP BY ROLLUP(city, car_model)
|
|
467
|
+
ORDER BY city_grouping, city, model_grouping, car_model
|
|
468
|
+
LIMIT 50;
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
**查询结果**:
|
|
472
|
+
|
|
473
|
+
| city | car\_model | total\_quantity | city\_grouping | model\_grouping |
|
|
474
|
+
| -------- | ------------ | --------------- | -------------- | --------------- |
|
|
475
|
+
| Dublin | Honda Accord | 10 | 0 | 0 |
|
|
476
|
+
| Dublin | Honda CRV | 3 | 0 | 0 |
|
|
477
|
+
| Dublin | Honda Civic | 20 | 0 | 0 |
|
|
478
|
+
| Dublin | NULL | 33 | 0 | 1 |
|
|
479
|
+
| Fremont | Honda Accord | 15 | 0 | 0 |
|
|
480
|
+
| Fremont | Honda CRV | 7 | 0 | 0 |
|
|
481
|
+
| Fremont | Honda Civic | 10 | 0 | 0 |
|
|
482
|
+
| Fremont | NULL | 32 | 0 | 1 |
|
|
483
|
+
| San Jose | Honda Accord | 8 | 0 | 0 |
|
|
484
|
+
| San Jose | Honda Civic | 5 | 0 | 0 |
|
|
485
|
+
| San Jose | NULL | 13 | 0 | 1 |
|
|
486
|
+
| NULL | NULL | 78 | 1 | 1 |
|
|
487
|
+
|
|
488
|
+
**GROUPING() 值解读**:
|
|
489
|
+
|
|
490
|
+
* (**0, 0**):明细数据,两列都参与分组
|
|
491
|
+
* (**0, 1**):城市小计,仅 city 参与分组
|
|
492
|
+
* (**1, 1**):全局总计,两列都不参与分组
|
|
493
|
+
|
|
494
|
+
***
|
|
495
|
+
|
|
496
|
+
## 五、CUBE(全维度交叉分析)
|
|
497
|
+
|
|
498
|
+
### 5.1 基本概念
|
|
499
|
+
|
|
500
|
+
`CUBE` 生成指定列的所有可能组合的分组集。对于 `CUBE(a, b)`,将生成 2² = 4 个分组集:
|
|
501
|
+
|
|
502
|
+
* `(a, b)` - 明细
|
|
503
|
+
* `(a)` - 按 a 汇总
|
|
504
|
+
* `(b)` - 按 b 汇总
|
|
505
|
+
* `()` - 全局汇总
|
|
506
|
+
|
|
507
|
+
**等价关系**:
|
|
508
|
+
|
|
509
|
+
```sql
|
|
510
|
+
CUBE(city, car_model)
|
|
511
|
+
-- 等价于
|
|
512
|
+
GROUPING SETS (
|
|
513
|
+
(city, car_model),
|
|
514
|
+
(city),
|
|
515
|
+
(car_model),
|
|
516
|
+
()
|
|
517
|
+
)
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
***
|
|
521
|
+
|
|
522
|
+
### 5.2 多维交叉分析
|
|
523
|
+
|
|
524
|
+
生成城市和车型的所有维度组合:
|
|
525
|
+
|
|
526
|
+
```sql
|
|
527
|
+
SELECT
|
|
528
|
+
city,
|
|
529
|
+
car_model,
|
|
530
|
+
SUM(quantity) AS total_quantity
|
|
531
|
+
FROM dealer
|
|
532
|
+
GROUP BY city, car_model WITH CUBE
|
|
533
|
+
LIMIT 50;
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
**查询结果**:
|
|
537
|
+
|
|
538
|
+
| city | car\_model | total\_quantity |
|
|
539
|
+
| -------- | ------------ | --------------- |
|
|
540
|
+
| Fremont | Honda Civic | 10 |
|
|
541
|
+
| Fremont | Honda Accord | 15 |
|
|
542
|
+
| Fremont | Honda CRV | 7 |
|
|
543
|
+
| Dublin | Honda Civic | 20 |
|
|
544
|
+
| Dublin | Honda Accord | 10 |
|
|
545
|
+
| Dublin | Honda CRV | 3 |
|
|
546
|
+
| San Jose | Honda Civic | 5 |
|
|
547
|
+
| San Jose | Honda Accord | 8 |
|
|
548
|
+
| NULL | Honda CRV | 10 |
|
|
549
|
+
| NULL | Honda Civic | 35 |
|
|
550
|
+
| NULL | Honda Accord | 33 |
|
|
551
|
+
| Fremont | NULL | 32 |
|
|
552
|
+
| Dublin | NULL | 33 |
|
|
553
|
+
| San Jose | NULL | 13 |
|
|
554
|
+
| NULL | NULL | 78 |
|
|
555
|
+
|
|
556
|
+
**结果包含**:
|
|
557
|
+
|
|
558
|
+
1. **明细行**(前8行):城市+车型组合
|
|
559
|
+
2. **车型汇总行**(city=NULL):跨城市的车型销量
|
|
560
|
+
3. **城市汇总行**(car\_model=NULL):跨车型的城市销量
|
|
561
|
+
4. **总计行**(city=NULL, car\_model=NULL):全局总计
|
|
562
|
+
|
|
563
|
+
***
|
|
564
|
+
|
|
565
|
+
### 5.3 标识聚合层级
|
|
566
|
+
|
|
567
|
+
使用 `CASE` 语句结合 `GROUPING()` 函数标识每行的聚合层级:
|
|
568
|
+
|
|
569
|
+
```sql
|
|
570
|
+
SELECT
|
|
571
|
+
city,
|
|
572
|
+
car_model,
|
|
573
|
+
SUM(quantity) AS total_quantity,
|
|
574
|
+
CASE
|
|
575
|
+
WHEN GROUPING(city) = 1 AND GROUPING(car_model) = 1 THEN 'Total'
|
|
576
|
+
WHEN GROUPING(city) = 0 AND GROUPING(car_model) = 1 THEN 'City Subtotal'
|
|
577
|
+
WHEN GROUPING(city) = 1 AND GROUPING(car_model) = 0 THEN 'Model Subtotal'
|
|
578
|
+
ELSE 'Detail'
|
|
579
|
+
END AS aggregation_level
|
|
580
|
+
FROM dealer
|
|
581
|
+
GROUP BY CUBE(city, car_model)
|
|
582
|
+
ORDER BY
|
|
583
|
+
GROUPING(city),
|
|
584
|
+
GROUPING(car_model),
|
|
585
|
+
city,
|
|
586
|
+
car_model
|
|
587
|
+
LIMIT 50;
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
**查询结果**:
|
|
591
|
+
|
|
592
|
+
| city | car\_model | total\_quantity | aggregation\_level |
|
|
593
|
+
| -------- | ------------ | --------------- | ------------------ |
|
|
594
|
+
| Dublin | Honda Accord | 10 | Detail |
|
|
595
|
+
| Dublin | Honda CRV | 3 | Detail |
|
|
596
|
+
| Dublin | Honda Civic | 20 | Detail |
|
|
597
|
+
| Fremont | Honda Accord | 15 | Detail |
|
|
598
|
+
| Fremont | Honda CRV | 7 | Detail |
|
|
599
|
+
| Fremont | Honda Civic | 10 | Detail |
|
|
600
|
+
| San Jose | Honda Accord | 8 | Detail |
|
|
601
|
+
| San Jose | Honda Civic | 5 | Detail |
|
|
602
|
+
| Dublin | NULL | 33 | City Subtotal |
|
|
603
|
+
| Fremont | NULL | 32 | City Subtotal |
|
|
604
|
+
| San Jose | NULL | 13 | City Subtotal |
|
|
605
|
+
| NULL | Honda Accord | 33 | Model Subtotal |
|
|
606
|
+
| NULL | Honda CRV | 10 | Model Subtotal |
|
|
607
|
+
| NULL | Honda Civic | 35 | Model Subtotal |
|
|
608
|
+
| NULL | NULL | 78 | Total |
|
|
609
|
+
|
|
610
|
+
此查询清晰地标识了每行数据所属的聚合层级。
|
|
611
|
+
|
|
612
|
+
***
|
|
613
|
+
|
|
614
|
+
### 5.4 ROLLUP vs CUBE
|
|
615
|
+
|
|
616
|
+
| 维度 | ROLLUP | CUBE |
|
|
617
|
+
| --------------- | -------------- | ------------------- |
|
|
618
|
+
| **生成分组集** | 层级子集(从左到右) | 所有可能组合 |
|
|
619
|
+
| **ROLLUP(a,b**) | (a,b), (a), () | (a,b), (a), (b), () |
|
|
620
|
+
| **分组数量** | n+1(n为列数) | 2ⁿ |
|
|
621
|
+
| **使用场景** | 层级报表、自上而下分析 | 多维交叉分析、BI 透视表 |
|
|
622
|
+
| **性能** | 生成分组数少,性能更优 | 生成分组数多,性能开销较大 |
|
|
623
|
+
|
|
624
|
+
**选择建议**:
|
|
625
|
+
|
|
626
|
+
* 需要**层级汇总**(如 地区→城市→门店)时使用 `ROLLUP`
|
|
627
|
+
* 需要**多维交叉分析**(如 地区×产品×时间)时使用 `CUBE`
|
|
628
|
+
* 需要**自定义组合**时使用 `GROUPING SETS`
|
|
629
|
+
|
|
630
|
+
***
|
|
631
|
+
|
|
632
|
+
## 六、HAVING 子句:过滤聚合结果
|
|
633
|
+
|
|
634
|
+
### 6.1 WHERE vs HAVING
|
|
635
|
+
|
|
636
|
+
| 子句 | 执行时机 | 作用对象 | 可用函数 |
|
|
637
|
+
| ---------- | ---- | ----- | --------------- |
|
|
638
|
+
| **WHERE** | 分组前 | 原始行数据 | 标量函数、列比较 |
|
|
639
|
+
| **HAVING** | 分组后 | 聚合结果 | 聚合函数、GROUP BY 列 |
|
|
640
|
+
|
|
641
|
+
**执行顺序**:FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY → LIMIT
|
|
642
|
+
|
|
643
|
+
***
|
|
644
|
+
|
|
645
|
+
### 6.2 使用 HAVING 过滤聚合结果
|
|
646
|
+
|
|
647
|
+
筛选总销量超过 15 辆的城市:
|
|
648
|
+
|
|
649
|
+
```sql
|
|
650
|
+
SELECT
|
|
651
|
+
city,
|
|
652
|
+
COUNT(*) AS record_count,
|
|
653
|
+
SUM(quantity) AS total_quantity
|
|
654
|
+
FROM dealer
|
|
655
|
+
GROUP BY city
|
|
656
|
+
HAVING SUM(quantity) > 15
|
|
657
|
+
ORDER BY total_quantity DESC
|
|
658
|
+
LIMIT 50;
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
**查询结果**:
|
|
662
|
+
|
|
663
|
+
| city | record\_count | total\_quantity |
|
|
664
|
+
| ------- | ------------- | --------------- |
|
|
665
|
+
| Dublin | 3 | 33 |
|
|
666
|
+
| Fremont | 3 | 32 |
|
|
667
|
+
|
|
668
|
+
San Jose(总销量 13 辆)被过滤掉,因为不满足 `HAVING` 条件。
|
|
669
|
+
|
|
670
|
+
***
|
|
671
|
+
|
|
672
|
+
### 6.3 WHERE 与 HAVING 组合
|
|
673
|
+
|
|
674
|
+
先用 `WHERE` 过滤原始数据,再用 `HAVING` 过滤聚合结果:
|
|
675
|
+
|
|
676
|
+
```sql
|
|
677
|
+
SELECT
|
|
678
|
+
city,
|
|
679
|
+
COUNT(*) AS record_count,
|
|
680
|
+
SUM(quantity) AS total_quantity
|
|
681
|
+
FROM dealer
|
|
682
|
+
WHERE quantity >= 10 -- 先过滤:只统计销量≥10的记录
|
|
683
|
+
GROUP BY city
|
|
684
|
+
HAVING COUNT(*) >= 2 -- 再过滤:只显示记录数≥2的城市
|
|
685
|
+
ORDER BY total_quantity DESC
|
|
686
|
+
LIMIT 50;
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
**执行逻辑**:
|
|
690
|
+
|
|
691
|
+
1. **WHERE 过滤**:排除 quantity < 10 的记录(过滤掉 4 条记录)
|
|
692
|
+
2. **GROUP BY 分组**:对剩余记录按 city 分组
|
|
693
|
+
3. **HAVING 过滤**:只保留记录数 ≥ 2 的分组
|
|
694
|
+
|
|
695
|
+
***
|
|
696
|
+
|
|
697
|
+
## 七、高级应用场景
|
|
698
|
+
|
|
699
|
+
### 7.1 行转列:透视分析
|
|
700
|
+
|
|
701
|
+
将车型从行转换为列,实现透视表效果:
|
|
702
|
+
|
|
703
|
+
```sql
|
|
704
|
+
SELECT
|
|
705
|
+
city,
|
|
706
|
+
SUM(CASE WHEN car_model = 'Honda Civic' THEN quantity ELSE 0 END) AS civic_sales,
|
|
707
|
+
SUM(CASE WHEN car_model = 'Honda Accord' THEN quantity ELSE 0 END) AS accord_sales,
|
|
708
|
+
SUM(CASE WHEN car_model = 'Honda CRV' THEN quantity ELSE 0 END) AS crv_sales,
|
|
709
|
+
SUM(quantity) AS total_sales
|
|
710
|
+
FROM dealer
|
|
711
|
+
GROUP BY city
|
|
712
|
+
ORDER BY total_sales DESC
|
|
713
|
+
LIMIT 50;
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
**查询结果**:
|
|
717
|
+
|
|
718
|
+
| city | civic\_sales | accord\_sales | crv\_sales | total\_sales |
|
|
719
|
+
| -------- | ------------ | ------------- | ---------- | ------------ |
|
|
720
|
+
| Dublin | 20 | 10 | 3 | 33 |
|
|
721
|
+
| Fremont | 10 | 15 | 7 | 32 |
|
|
722
|
+
| San Jose | 5 | 8 | 0 | 13 |
|
|
723
|
+
|
|
724
|
+
**业务价值**:
|
|
725
|
+
|
|
726
|
+
* 清晰展示每个城市各车型的销量分布
|
|
727
|
+
* San Jose 没有 CRV 销售记录(显示为 0)
|
|
728
|
+
* 适合用于 Excel 报表、BI 仪表板
|
|
729
|
+
|
|
730
|
+
***
|
|
731
|
+
|
|
732
|
+
### 7.2 占比分析:窗口函数与 GROUP BY
|
|
733
|
+
|
|
734
|
+
计算每个车型在其所在城市的销量占比:
|
|
735
|
+
|
|
736
|
+
```sql
|
|
737
|
+
SELECT
|
|
738
|
+
city,
|
|
739
|
+
car_model,
|
|
740
|
+
quantity,
|
|
741
|
+
SUM(quantity) OVER (PARTITION BY city) AS city_total,
|
|
742
|
+
ROUND(quantity * 100.0 / SUM(quantity) OVER (PARTITION BY city), 2) AS percentage
|
|
743
|
+
FROM dealer
|
|
744
|
+
ORDER BY city, car_model
|
|
745
|
+
LIMIT 50;
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
**查询结果**:
|
|
749
|
+
|
|
750
|
+
| city | car\_model | quantity | city\_total | percentage |
|
|
751
|
+
| -------- | ------------ | -------- | ----------- | ---------- |
|
|
752
|
+
| Dublin | Honda Accord | 10 | 33 | 30.30 |
|
|
753
|
+
| Dublin | Honda CRV | 3 | 33 | 9.09 |
|
|
754
|
+
| Dublin | Honda Civic | 20 | 33 | 60.61 |
|
|
755
|
+
| Fremont | Honda Accord | 15 | 32 | 46.88 |
|
|
756
|
+
| Fremont | Honda CRV | 7 | 32 | 21.88 |
|
|
757
|
+
| Fremont | Honda Civic | 10 | 32 | 31.25 |
|
|
758
|
+
| San Jose | Honda Accord | 8 | 13 | 61.54 |
|
|
759
|
+
| San Jose | Honda Civic | 5 | 13 | 38.46 |
|
|
760
|
+
|
|
761
|
+
**业务洞察**:
|
|
762
|
+
|
|
763
|
+
* **Dublin**:Honda Civic 占比 60.61%,是绝对主力车型
|
|
764
|
+
* **Fremont**:销量分布较均衡,Accord 占比最高(46.88%)
|
|
765
|
+
* **San Jose**:Accord 占比 61.54%,市场偏好明显
|
|
766
|
+
|
|
767
|
+
**技术说明**:窗口函数 `SUM() OVER (PARTITION BY city)` 计算每个城市的总销量,但不改变行数。
|
|
768
|
+
|
|
769
|
+
***
|
|
770
|
+
|
|
771
|
+
### 7.3 同比环比分析模式
|
|
772
|
+
|
|
773
|
+
虽然示例数据不包含时间维度,但提供标准的同比/环比分析 SQL 模式:
|
|
774
|
+
|
|
775
|
+
```sql
|
|
776
|
+
-- 示例:按月统计销量,计算环比增长
|
|
777
|
+
SELECT
|
|
778
|
+
DATE_FORMAT(sale_date, 'yyyy-MM') AS month,
|
|
779
|
+
SUM(quantity) AS monthly_sales,
|
|
780
|
+
LAG(SUM(quantity)) OVER (ORDER BY DATE_FORMAT(sale_date, 'yyyy-MM')) AS prev_month_sales,
|
|
781
|
+
ROUND(
|
|
782
|
+
(SUM(quantity) - LAG(SUM(quantity)) OVER (ORDER BY DATE_FORMAT(sale_date, 'yyyy-MM'))) * 100.0 /
|
|
783
|
+
LAG(SUM(quantity)) OVER (ORDER BY DATE_FORMAT(sale_date, 'yyyy-MM')),
|
|
784
|
+
2
|
|
785
|
+
) AS mom_growth_rate
|
|
786
|
+
FROM sales_table
|
|
787
|
+
GROUP BY DATE_FORMAT(sale_date, 'yyyy-MM')
|
|
788
|
+
ORDER BY month;
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
**关键技术**:
|
|
792
|
+
|
|
793
|
+
* `LAG()` 窗口函数获取上一行的值
|
|
794
|
+
* 环比增长率 = (当前值 - 上期值) / 上期值 × 100%
|
|
795
|
+
|
|
796
|
+
***
|
|
797
|
+
|
|
798
|
+
### 7.4 TopN 分析:每组取前 N
|
|
799
|
+
|
|
800
|
+
使用窗口函数结合 GROUP BY 实现分组 TopN:
|
|
801
|
+
|
|
802
|
+
```sql
|
|
803
|
+
-- 示例:每个城市销量前 2 的车型
|
|
804
|
+
SELECT *
|
|
805
|
+
FROM (
|
|
806
|
+
SELECT
|
|
807
|
+
city,
|
|
808
|
+
car_model,
|
|
809
|
+
quantity,
|
|
810
|
+
ROW_NUMBER() OVER (PARTITION BY city ORDER BY quantity DESC) AS rank
|
|
811
|
+
FROM dealer
|
|
812
|
+
) ranked
|
|
813
|
+
WHERE rank <= 2
|
|
814
|
+
ORDER BY city, rank;
|
|
815
|
+
```
|
|
816
|
+
|
|
817
|
+
**预期逻辑**(基于当前数据):
|
|
818
|
+
|
|
819
|
+
* Dublin:Honda Civic (20), Honda Accord (10)
|
|
820
|
+
* Fremont:Honda Accord (15), Honda Civic (10)
|
|
821
|
+
* San Jose:Honda Accord (8), Honda Civic (5)
|
|
822
|
+
|
|
823
|
+
***
|
|
824
|
+
|
|
825
|
+
## 八、性能优化与最佳实践
|
|
826
|
+
|
|
827
|
+
### 8.1 查询性能优化
|
|
828
|
+
|
|
829
|
+
#### 1. 合理使用 LIMIT
|
|
830
|
+
|
|
831
|
+
对于大数据集,始终添加 `LIMIT` 限制返回行数:
|
|
832
|
+
|
|
833
|
+
```sql
|
|
834
|
+
-- 推荐
|
|
835
|
+
SELECT city, SUM(quantity)
|
|
836
|
+
FROM large_table
|
|
837
|
+
GROUP BY city
|
|
838
|
+
LIMIT 100;
|
|
839
|
+
|
|
840
|
+
-- 避免:可能返回数百万行
|
|
841
|
+
SELECT city, SUM(quantity)
|
|
842
|
+
FROM large_table
|
|
843
|
+
GROUP BY city;
|
|
844
|
+
```
|
|
845
|
+
|
|
846
|
+
#### 2. 选择合适的聚合工具
|
|
847
|
+
|
|
848
|
+
| 需求 | 推荐方案 | 生成分组数 | 性能 |
|
|
849
|
+
| ------ | --------------- | ----- | ----- |
|
|
850
|
+
| 简单层级汇总 | `ROLLUP` | n+1 | ⭐⭐⭐⭐⭐ |
|
|
851
|
+
| 多维交叉分析 | `CUBE` | 2ⁿ | ⭐⭐⭐ |
|
|
852
|
+
| 自定义分组集 | `GROUPING SETS` | 自定义 | ⭐⭐⭐⭐ |
|
|
853
|
+
|
|
854
|
+
**示例**:对于 3 列分组
|
|
855
|
+
|
|
856
|
+
* `ROLLUP(a,b,c)` 生成 4 个分组集
|
|
857
|
+
* `CUBE(a,b,c)` 生成 8 个分组集
|
|
858
|
+
* `GROUPING SETS` 可自定义任意组合
|
|
859
|
+
|
|
860
|
+
#### 3. 降低分组列基数
|
|
861
|
+
|
|
862
|
+
对高基数列(如 ID、timestamp)使用函数降低粒度:
|
|
863
|
+
|
|
864
|
+
```sql
|
|
865
|
+
-- 避免:按秒级 timestamp 分组
|
|
866
|
+
GROUP BY timestamp -- 可能产生数百万个分组
|
|
867
|
+
|
|
868
|
+
-- 推荐:按小时或天分组
|
|
869
|
+
GROUP BY DATE_FORMAT(timestamp, 'yyyy-MM-dd')
|
|
870
|
+
GROUP BY DATE_TRUNC('hour', timestamp)
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
#### 4. WHERE 过滤优于 HAVING 过滤
|
|
874
|
+
|
|
875
|
+
尽量在 `WHERE` 中过滤数据,减少 `GROUP BY` 处理的数据量:
|
|
876
|
+
|
|
877
|
+
```sql
|
|
878
|
+
-- 推荐:先过滤再分组
|
|
879
|
+
SELECT city, SUM(quantity)
|
|
880
|
+
FROM dealer
|
|
881
|
+
WHERE car_model = 'Honda Civic' -- 先过滤,减少数据量
|
|
882
|
+
GROUP BY city;
|
|
883
|
+
|
|
884
|
+
-- 避免:先分组再过滤(处理了不必要的数据)
|
|
885
|
+
SELECT city, car_model, SUM(quantity)
|
|
886
|
+
FROM dealer
|
|
887
|
+
GROUP BY city, car_model
|
|
888
|
+
HAVING car_model = 'Honda Civic';
|
|
889
|
+
```
|
|
890
|
+
|
|
891
|
+
***
|
|
892
|
+
|
|
893
|
+
### 8.2 常见错误与解决方案
|
|
894
|
+
|
|
895
|
+
#### 错误 1:SELECT 列未在 GROUP BY 中
|
|
896
|
+
|
|
897
|
+
```sql
|
|
898
|
+
-- ❌ 错误示例
|
|
899
|
+
SELECT city, car_model, quantity
|
|
900
|
+
FROM dealer
|
|
901
|
+
GROUP BY city;
|
|
902
|
+
-- 错误:car_model 和 quantity 未分组或聚合
|
|
903
|
+
|
|
904
|
+
-- ✅ 正确方案1:添加到 GROUP BY
|
|
905
|
+
SELECT city, car_model, SUM(quantity)
|
|
906
|
+
FROM dealer
|
|
907
|
+
GROUP BY city, car_model;
|
|
908
|
+
|
|
909
|
+
-- ✅ 正确方案2:使用聚合函数
|
|
910
|
+
SELECT city, MAX(car_model), SUM(quantity)
|
|
911
|
+
FROM dealer
|
|
912
|
+
GROUP BY city;
|
|
913
|
+
```
|
|
914
|
+
|
|
915
|
+
#### 错误 2:WHERE 中使用聚合函数
|
|
916
|
+
|
|
917
|
+
```sql
|
|
918
|
+
-- ❌ 错误示例
|
|
919
|
+
SELECT city, SUM(quantity)
|
|
920
|
+
FROM dealer
|
|
921
|
+
WHERE SUM(quantity) > 20 -- WHERE 不能使用聚合函数
|
|
922
|
+
GROUP BY city;
|
|
923
|
+
|
|
924
|
+
-- ✅ 正确方案:使用 HAVING
|
|
925
|
+
SELECT city, SUM(quantity)
|
|
926
|
+
FROM dealer
|
|
927
|
+
GROUP BY city
|
|
928
|
+
HAVING SUM(quantity) > 20;
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
#### 错误 3:混淆 ROLLUP/CUBE 语法
|
|
932
|
+
|
|
933
|
+
```sql
|
|
934
|
+
-- ❌ 错误示例
|
|
935
|
+
GROUP BY city, ROLLUP(car_model) -- 不支持混合语法
|
|
936
|
+
|
|
937
|
+
-- ✅ 正确方案
|
|
938
|
+
GROUP BY ROLLUP(city, car_model)
|
|
939
|
+
```
|
|
940
|
+
|
|
941
|
+
#### 错误 4:忽略 NULL 值影响
|
|
942
|
+
|
|
943
|
+
```sql
|
|
944
|
+
-- 在 ROLLUP/CUBE 中,NULL 既可能是真实 NULL,也可能是汇总标记
|
|
945
|
+
-- 使用 GROUPING() 函数区分
|
|
946
|
+
|
|
947
|
+
SELECT
|
|
948
|
+
CASE WHEN GROUPING(city) = 1 THEN 'Total' ELSE city END AS city,
|
|
949
|
+
SUM(quantity)
|
|
950
|
+
FROM dealer
|
|
951
|
+
GROUP BY ROLLUP(city);
|
|
952
|
+
```
|
|
953
|
+
|
|
954
|
+
***
|
|
955
|
+
|
|
956
|
+
### 8.3 数据质量检查
|
|
957
|
+
|
|
958
|
+
#### 检查分组完整性
|
|
959
|
+
|
|
960
|
+
验证分组汇总是否等于总计:
|
|
961
|
+
|
|
962
|
+
```sql
|
|
963
|
+
-- 方法1:使用 ROLLUP 自动生成总计行
|
|
964
|
+
SELECT
|
|
965
|
+
COALESCE(city, 'TOTAL') AS city,
|
|
966
|
+
SUM(quantity) AS total
|
|
967
|
+
FROM dealer
|
|
968
|
+
GROUP BY ROLLUP(city);
|
|
969
|
+
|
|
970
|
+
-- 方法2:手动验证
|
|
971
|
+
WITH group_totals AS (
|
|
972
|
+
SELECT SUM(quantity) AS grouped_sum
|
|
973
|
+
FROM dealer
|
|
974
|
+
GROUP BY city
|
|
975
|
+
),
|
|
976
|
+
grand_total AS (
|
|
977
|
+
SELECT SUM(quantity) AS total_sum
|
|
978
|
+
FROM dealer
|
|
979
|
+
)
|
|
980
|
+
SELECT
|
|
981
|
+
(SELECT SUM(grouped_sum) FROM group_totals) AS sum_of_groups,
|
|
982
|
+
(SELECT total_sum FROM grand_total) AS grand_total,
|
|
983
|
+
CASE
|
|
984
|
+
WHEN (SELECT SUM(grouped_sum) FROM group_totals) = (SELECT total_sum FROM grand_total)
|
|
985
|
+
THEN 'PASS'
|
|
986
|
+
ELSE 'FAIL'
|
|
987
|
+
END AS validation_result;
|
|
988
|
+
```
|
|
989
|
+
|
|
990
|
+
***
|
|
991
|
+
|
|
992
|
+
## 九、实战案例汇总
|
|
993
|
+
|
|
994
|
+
### 9.1 销售分析报表
|
|
995
|
+
|
|
996
|
+
**需求**:生成包含明细、小计、总计的销售报表
|
|
997
|
+
|
|
998
|
+
```sql
|
|
999
|
+
SELECT
|
|
1000
|
+
COALESCE(city, 'All Cities') AS city,
|
|
1001
|
+
COALESCE(car_model, 'All Models') AS car_model,
|
|
1002
|
+
SUM(quantity) AS total_quantity
|
|
1003
|
+
FROM dealer
|
|
1004
|
+
GROUP BY ROLLUP(city, car_model)
|
|
1005
|
+
ORDER BY
|
|
1006
|
+
GROUPING(city),
|
|
1007
|
+
city,
|
|
1008
|
+
GROUPING(car_model),
|
|
1009
|
+
car_model
|
|
1010
|
+
LIMIT 50;
|
|
1011
|
+
```
|
|
1012
|
+
|
|
1013
|
+
***
|
|
1014
|
+
|
|
1015
|
+
### 9.2 多维交叉分析
|
|
1016
|
+
|
|
1017
|
+
**需求**:BI 透视表,需要城市和车型的所有维度组合
|
|
1018
|
+
|
|
1019
|
+
```sql
|
|
1020
|
+
SELECT
|
|
1021
|
+
city,
|
|
1022
|
+
car_model,
|
|
1023
|
+
SUM(quantity) AS total_quantity,
|
|
1024
|
+
CASE
|
|
1025
|
+
WHEN GROUPING(city) = 1 AND GROUPING(car_model) = 1 THEN 'Grand Total'
|
|
1026
|
+
WHEN GROUPING(city) = 1 THEN 'Model Total'
|
|
1027
|
+
WHEN GROUPING(car_model) = 1 THEN 'City Total'
|
|
1028
|
+
ELSE 'Detail'
|
|
1029
|
+
END AS level
|
|
1030
|
+
FROM dealer
|
|
1031
|
+
GROUP BY CUBE(city, car_model)
|
|
1032
|
+
ORDER BY
|
|
1033
|
+
GROUPING(city),
|
|
1034
|
+
GROUPING(car_model),
|
|
1035
|
+
city,
|
|
1036
|
+
car_model
|
|
1037
|
+
LIMIT 50;
|
|
1038
|
+
```
|
|
1039
|
+
|
|
1040
|
+
***
|
|
1041
|
+
|
|
1042
|
+
### 9.3 Top/Bottom N 分析
|
|
1043
|
+
|
|
1044
|
+
**需求**:找出销量最高和最低的城市
|
|
1045
|
+
|
|
1046
|
+
```sql
|
|
1047
|
+
-- Top 2 城市
|
|
1048
|
+
SELECT city, SUM(quantity) AS total_quantity
|
|
1049
|
+
FROM dealer
|
|
1050
|
+
GROUP BY city
|
|
1051
|
+
ORDER BY total_quantity DESC
|
|
1052
|
+
LIMIT 2;
|
|
1053
|
+
|
|
1054
|
+
-- Bottom 2 城市
|
|
1055
|
+
SELECT city, SUM(quantity) AS total_quantity
|
|
1056
|
+
FROM dealer
|
|
1057
|
+
GROUP BY city
|
|
1058
|
+
ORDER BY total_quantity ASC
|
|
1059
|
+
LIMIT 2;
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
***
|
|
1063
|
+
|
|
1064
|
+
### 9.4 占比与排名
|
|
1065
|
+
|
|
1066
|
+
**需求**:计算每个车型的销量占比和排名
|
|
1067
|
+
|
|
1068
|
+
```sql
|
|
1069
|
+
SELECT
|
|
1070
|
+
car_model,
|
|
1071
|
+
SUM(quantity) AS total_sales,
|
|
1072
|
+
ROUND(SUM(quantity) * 100.0 / (SELECT SUM(quantity) FROM dealer), 2) AS percentage,
|
|
1073
|
+
RANK() OVER (ORDER BY SUM(quantity) DESC) AS rank
|
|
1074
|
+
FROM dealer
|
|
1075
|
+
GROUP BY car_model
|
|
1076
|
+
ORDER BY total_sales DESC
|
|
1077
|
+
LIMIT 50;
|
|
1078
|
+
```
|
|
1079
|
+
|
|
1080
|
+
***
|
|
1081
|
+
|
|
1082
|
+
## 十、功能对比与选择指南
|
|
1083
|
+
|
|
1084
|
+
### 10.1 四种分组方式对比
|
|
1085
|
+
|
|
1086
|
+
| 特性 | GROUP BY | GROUPING SETS | ROLLUP | CUBE |
|
|
1087
|
+
| --------- | -------- | ------------- | ------ | -------- |
|
|
1088
|
+
| **语法复杂度** | 简单 | 中等 | 简单 | 简单 |
|
|
1089
|
+
| **生成分组数** | 1 | 自定义 | n+1 | 2ⁿ |
|
|
1090
|
+
| **灵活性** | 低 | 高 | 中 | 中 |
|
|
1091
|
+
| **性能** | 最优 | 优 | 优 | 较差(列数多时) |
|
|
1092
|
+
| **适用场景** | 基础统计 | 自定义多维分析 | 层级报表 | 全维交叉分析 |
|
|
1093
|
+
|
|
1094
|
+
***
|
|
1095
|
+
|
|
1096
|
+
### 10.2 选择决策树
|
|
1097
|
+
|
|
1098
|
+
```
|
|
1099
|
+
是否需要多维度汇总?
|
|
1100
|
+
├─ 否 → 使用标准 GROUP BY
|
|
1101
|
+
└─ 是 → 需要哪些维度组合?
|
|
1102
|
+
├─ 所有可能组合 → 使用 CUBE
|
|
1103
|
+
├─ 层级汇总(从细到总)→ 使用 ROLLUP
|
|
1104
|
+
└─ 自定义特定组合 → 使用 GROUPING SETS
|
|
1105
|
+
```
|
|
1106
|
+
|
|
1107
|
+
***
|
|
1108
|
+
|
|
1109
|
+
### 10.3 推荐使用场景
|
|
1110
|
+
|
|
1111
|
+
| 业务场景 | 推荐方案 | 示例 |
|
|
1112
|
+
| -------- | -------------------- | ------------ |
|
|
1113
|
+
| 日常统计报表 | `GROUP BY` | 按部门统计销售额 |
|
|
1114
|
+
| 财务分层汇总 | `ROLLUP` | 公司→部门→团队层级汇总 |
|
|
1115
|
+
| BI 数据透视表 | `CUBE` | 产品×地区×时间三维分析 |
|
|
1116
|
+
| 自定义业务报表 | `GROUPING SETS` | 同时输出日报、周报、月报 |
|
|
1117
|
+
| 占比分析 | `GROUP BY` + 窗口函数 | 各产品销量占比 |
|
|
1118
|
+
| Top N 分析 | `GROUP BY` + `LIMIT` | 销量前10的产品 |
|
|
1119
|
+
|
|
1120
|
+
***
|
|
1121
|
+
|
|
1122
|
+
## 十一、进阶技巧
|
|
1123
|
+
|
|
1124
|
+
### 11.1 动态分组
|
|
1125
|
+
|
|
1126
|
+
使用变量或子查询实现动态分组条件(示例逻辑):
|
|
1127
|
+
|
|
1128
|
+
```sql
|
|
1129
|
+
-- 根据销量范围动态分组
|
|
1130
|
+
SELECT
|
|
1131
|
+
CASE
|
|
1132
|
+
WHEN SUM(quantity) >= 30 THEN 'High Volume'
|
|
1133
|
+
WHEN SUM(quantity) >= 15 THEN 'Medium Volume'
|
|
1134
|
+
ELSE 'Low Volume'
|
|
1135
|
+
END AS volume_tier,
|
|
1136
|
+
COUNT(DISTINCT city) AS city_count
|
|
1137
|
+
FROM (
|
|
1138
|
+
SELECT city, SUM(quantity) AS city_total
|
|
1139
|
+
FROM dealer
|
|
1140
|
+
GROUP BY city
|
|
1141
|
+
) city_summary
|
|
1142
|
+
GROUP BY
|
|
1143
|
+
CASE
|
|
1144
|
+
WHEN city_total >= 30 THEN 'High Volume'
|
|
1145
|
+
WHEN city_total >= 15 THEN 'Medium Volume'
|
|
1146
|
+
ELSE 'Low Volume'
|
|
1147
|
+
END;
|
|
1148
|
+
```
|
|
1149
|
+
|
|
1150
|
+
***
|
|
1151
|
+
|
|
1152
|
+
### 11.2 递归汇总(模拟)
|
|
1153
|
+
|
|
1154
|
+
虽然云器 Lakehouse 目前还不直接支持递归 CTE,但可通过 UNION ALL 模拟多层级汇总:
|
|
1155
|
+
|
|
1156
|
+
```sql
|
|
1157
|
+
-- 三层汇总:明细、城市小计、总计
|
|
1158
|
+
SELECT city, car_model, quantity, 'Detail' AS level
|
|
1159
|
+
FROM dealer
|
|
1160
|
+
UNION ALL
|
|
1161
|
+
SELECT city, NULL, SUM(quantity), 'City Subtotal'
|
|
1162
|
+
FROM dealer
|
|
1163
|
+
GROUP BY city
|
|
1164
|
+
UNION ALL
|
|
1165
|
+
SELECT NULL, NULL, SUM(quantity), 'Grand Total'
|
|
1166
|
+
FROM dealer
|
|
1167
|
+
ORDER BY
|
|
1168
|
+
CASE level
|
|
1169
|
+
WHEN 'Detail' THEN 1
|
|
1170
|
+
WHEN 'City Subtotal' THEN 2
|
|
1171
|
+
WHEN 'Grand Total' THEN 3
|
|
1172
|
+
END,
|
|
1173
|
+
city,
|
|
1174
|
+
car_model;
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
***
|
|
1178
|
+
|
|
1179
|
+
### 11.3 NULL 值处理技巧
|
|
1180
|
+
|
|
1181
|
+
#### 技巧 1:区分真实 NULL 和聚合 NULL
|
|
1182
|
+
|
|
1183
|
+
```sql
|
|
1184
|
+
SELECT
|
|
1185
|
+
city,
|
|
1186
|
+
car_model,
|
|
1187
|
+
SUM(quantity) AS total,
|
|
1188
|
+
CASE
|
|
1189
|
+
WHEN GROUPING(city) = 1 THEN '[Subtotal]'
|
|
1190
|
+
WHEN city IS NULL THEN '[Real NULL]'
|
|
1191
|
+
ELSE city
|
|
1192
|
+
END AS city_display
|
|
1193
|
+
FROM dealer
|
|
1194
|
+
GROUP BY ROLLUP(city, car_model);
|
|
1195
|
+
```
|
|
1196
|
+
|
|
1197
|
+
#### 技巧 2:使用 COALESCE 美化输出
|
|
1198
|
+
|
|
1199
|
+
```sql
|
|
1200
|
+
SELECT
|
|
1201
|
+
COALESCE(city, '📊 All Cities') AS city,
|
|
1202
|
+
COALESCE(car_model, '🚗 All Models') AS car_model,
|
|
1203
|
+
SUM(quantity) AS total
|
|
1204
|
+
FROM dealer
|
|
1205
|
+
GROUP BY CUBE(city, car_model);
|
|
1206
|
+
```
|
|
1207
|
+
|
|
1208
|
+
***
|
|
1209
|
+
|
|
1210
|
+
## 十二、总结
|
|
1211
|
+
|
|
1212
|
+
### 核心要点
|
|
1213
|
+
|
|
1214
|
+
1. **GROUP BY** 是数据聚合分析的基础,掌握其用法是 SQL 分析的必备技能
|
|
1215
|
+
2. **GROUPING SETS / ROLLUP / CUBE** 提供了强大的多维分析能力,一次查询生成多层级汇总
|
|
1216
|
+
3. **HAVING** 用于过滤聚合结果,与 WHERE 配合实现灵活的数据筛选
|
|
1217
|
+
4. **窗口函数** 与 GROUP BY 结合,可实现复杂的占比、排名、同环比分析
|
|
1218
|
+
5. **性能优化** 需要权衡灵活性与效率,合理选择分组方式
|
|
1219
|
+
|
|
1220
|
+
***
|
|
1221
|
+
|
|
1222
|
+
### 学习路径建议
|
|
1223
|
+
|
|
1224
|
+
1. **基础阶段**:掌握标准 GROUP BY 和常用聚合函数
|
|
1225
|
+
2. **进阶阶段**:学习 GROUPING SETS、ROLLUP、CUBE 的使用场景
|
|
1226
|
+
3. **高级阶段**:结合窗口函数、CTE 实现复杂业务分析
|
|
1227
|
+
4. **实战阶段**:应用于实际业务场景,优化查询性能
|
|
1228
|
+
|
|
1229
|
+
***
|
|
1230
|
+
|
|
1231
|
+
### 快速参考
|
|
1232
|
+
|
|
1233
|
+
```sql
|
|
1234
|
+
-- 基础分组
|
|
1235
|
+
SELECT column, AGG_FUNC(column) FROM table GROUP BY column;
|
|
1236
|
+
|
|
1237
|
+
-- 多维分组
|
|
1238
|
+
SELECT col1, col2, AGG_FUNC(col3)
|
|
1239
|
+
FROM table
|
|
1240
|
+
GROUP BY GROUPING SETS ((col1, col2), (col1), ());
|
|
1241
|
+
|
|
1242
|
+
-- 层级汇总
|
|
1243
|
+
SELECT col1, col2, AGG_FUNC(col3)
|
|
1244
|
+
FROM table
|
|
1245
|
+
GROUP BY ROLLUP(col1, col2);
|
|
1246
|
+
|
|
1247
|
+
-- 交叉分析
|
|
1248
|
+
SELECT col1, col2, AGG_FUNC(col3)
|
|
1249
|
+
FROM table
|
|
1250
|
+
GROUP BY col1, col2 WITH CUBE;
|
|
1251
|
+
|
|
1252
|
+
-- 条件过滤
|
|
1253
|
+
SELECT col1, AGG_FUNC(col2)
|
|
1254
|
+
FROM table
|
|
1255
|
+
WHERE condition
|
|
1256
|
+
GROUP BY col1
|
|
1257
|
+
HAVING AGG_FUNC(col2) > value;
|
|
1258
|
+
```
|
|
1259
|
+
|
|
1260
|
+
^
|