@clickzetta/cz-cli-darwin-arm64 0.3.75 → 0.3.78

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.
Files changed (1249) hide show
  1. package/bin/cz-cli +0 -0
  2. package/bin/skills/clickzetta-dynamic-table/SKILL.md +188 -126
  3. package/bin/skills/clickzetta-dynamic-table/best-practices/dimension-table-join-guide.md +7 -11
  4. package/bin/skills/clickzetta-dynamic-table/best-practices/scheduling-guide.md +135 -0
  5. package/bin/skills/clickzetta-dynamic-table/dt-creator/references/dt-declaration-strategy.md +8 -8
  6. package/bin/skills/clickzetta-dynamic-table/dt-creator/references/incremental-config-reference.md +2 -4
  7. package/bin/skills/clickzetta-dynamic-table/dt-creator/references/refresh-history-guide.md +2 -10
  8. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/SKILL.md +27 -0
  9. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-column-validation-rules.md +118 -0
  10. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-conversion-rules.md +225 -0
  11. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-placeholder-rules.md +182 -0
  12. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-refresh-rules.md +98 -0
  13. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-self-reference-rules.md +76 -0
  14. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-workflow.md +109 -0
  15. package/bin/skills/cz-cli/SKILL.md +126 -2
  16. package/package.json +1 -1
  17. package/bin/skills/cz-cli-inner/SKILL.md +0 -109
  18. package/bin/skills/lakehouse-doc/SKILL.md +0 -107
  19. package/bin/skills/lakehouse-doc/references/.gitattributes +0 -1
  20. package/bin/skills/lakehouse-doc/references/.gitlab-ci.yml +0 -11
  21. package/bin/skills/lakehouse-doc/references/702bc8f656.md +0 -387
  22. package/bin/skills/lakehouse-doc/references/774c65e217.md +0 -136
  23. package/bin/skills/lakehouse-doc/references/9164fed65a.md +0 -1
  24. package/bin/skills/lakehouse-doc/references/AIGateway.md +0 -3
  25. package/bin/skills/lakehouse-doc/references/AI_COMPLETE.md +0 -157
  26. package/bin/skills/lakehouse-doc/references/AI_EMBEDDING.md +0 -70
  27. package/bin/skills/lakehouse-doc/references/AI_Gateway.md +0 -255
  28. package/bin/skills/lakehouse-doc/references/AI_eco.md +0 -1
  29. package/bin/skills/lakehouse-doc/references/AI_function_in_SQL.md +0 -25
  30. package/bin/skills/lakehouse-doc/references/AI_function_overview.md +0 -25
  31. package/bin/skills/lakehouse-doc/references/ALTER-EXTERNAL-TABLE.md +0 -78
  32. package/bin/skills/lakehouse-doc/references/ALTER-SCHEMA.md +0 -85
  33. package/bin/skills/lakehouse-doc/references/ALTER-TABLE-COLUMN.md +0 -223
  34. package/bin/skills/lakehouse-doc/references/ALTERTABLE.md +0 -92
  35. package/bin/skills/lakehouse-doc/references/ARRAY.md +0 -99
  36. package/bin/skills/lakehouse-doc/references/Account.md +0 -2
  37. package/bin/skills/lakehouse-doc/references/Analysis.md +0 -1
  38. package/bin/skills/lakehouse-doc/references/AnalyticsModernDataStack.md +0 -390
  39. package/bin/skills/lakehouse-doc/references/Application_list.md +0 -26
  40. package/bin/skills/lakehouse-doc/references/Approval.md +0 -1
  41. package/bin/skills/lakehouse-doc/references/Approval_list.md +0 -61
  42. package/bin/skills/lakehouse-doc/references/BIGINT.md +0 -49
  43. package/bin/skills/lakehouse-doc/references/BINARY.md +0 -104
  44. package/bin/skills/lakehouse-doc/references/BOOLEAN.md +0 -47
  45. package/bin/skills/lakehouse-doc/references/BP_AI_Function_Image2text.md +0 -203
  46. package/bin/skills/lakehouse-doc/references/BluepipeOracleLakehouse_DataSync.md +0 -244
  47. package/bin/skills/lakehouse-doc/references/CHAR.md +0 -38
  48. package/bin/skills/lakehouse-doc/references/CONNECTION.md +0 -1
  49. package/bin/skills/lakehouse-doc/references/COPY-INTO-Location.md +0 -404
  50. package/bin/skills/lakehouse-doc/references/COPY_INTO_Location.md +0 -371
  51. package/bin/skills/lakehouse-doc/references/CREAREUSER.md +0 -42
  52. package/bin/skills/lakehouse-doc/references/CREATE-BLOOMFILTER-INDEX.md +0 -138
  53. package/bin/skills/lakehouse-doc/references/CREATECONNECTION.md +0 -11
  54. package/bin/skills/lakehouse-doc/references/CREATEEXTERNAlLSCHEMA.md +0 -290
  55. package/bin/skills/lakehouse-doc/references/CREATEMATERIALIZEDVIEW.md +0 -518
  56. package/bin/skills/lakehouse-doc/references/CREATEROLE.md +0 -71
  57. package/bin/skills/lakehouse-doc/references/CREATESCHEMA.md +0 -40
  58. package/bin/skills/lakehouse-doc/references/CREATEVIEW.md +0 -63
  59. package/bin/skills/lakehouse-doc/references/CREATE_EXTERNATL_FUNCTION.md +0 -219
  60. package/bin/skills/lakehouse-doc/references/CTERevenueCohort.md +0 -275
  61. package/bin/skills/lakehouse-doc/references/ComputeResourceDDL.md +0 -1
  62. package/bin/skills/lakehouse-doc/references/Concepts.md +0 -1
  63. package/bin/skills/lakehouse-doc/references/Create_Embeding_Function.md +0 -236
  64. package/bin/skills/lakehouse-doc/references/Create_LLM_Function.md +0 -242
  65. package/bin/skills/lakehouse-doc/references/CreditScoringwithZettaparkandPythonMLlibraryNew.md +0 -873
  66. package/bin/skills/lakehouse-doc/references/DATE.md +0 -50
  67. package/bin/skills/lakehouse-doc/references/DDL.md +0 -1
  68. package/bin/skills/lakehouse-doc/references/DECIMAL.md +0 -27
  69. package/bin/skills/lakehouse-doc/references/DELETE.md +0 -48
  70. package/bin/skills/lakehouse-doc/references/DESC-INDEX.md +0 -41
  71. package/bin/skills/lakehouse-doc/references/DESC-JOB.md +0 -31
  72. package/bin/skills/lakehouse-doc/references/DESCCONNECTION.md +0 -39
  73. package/bin/skills/lakehouse-doc/references/DESCMATERIALIZEDVIEW.md +0 -31
  74. package/bin/skills/lakehouse-doc/references/DESCSCHEMAS.md +0 -59
  75. package/bin/skills/lakehouse-doc/references/DESCTABLE.md +0 -105
  76. package/bin/skills/lakehouse-doc/references/DESCVIEW.md +0 -66
  77. package/bin/skills/lakehouse-doc/references/DOUBLE.md +0 -58
  78. package/bin/skills/lakehouse-doc/references/DQL.md +0 -1
  79. package/bin/skills/lakehouse-doc/references/DROP-INDEX.md +0 -29
  80. package/bin/skills/lakehouse-doc/references/DROPCONNECTION.md +0 -32
  81. package/bin/skills/lakehouse-doc/references/DROPMATERIALIZEDVIEW.md +0 -42
  82. package/bin/skills/lakehouse-doc/references/DROPROLE.md +0 -56
  83. package/bin/skills/lakehouse-doc/references/DROPSCHEMA.md +0 -37
  84. package/bin/skills/lakehouse-doc/references/DROPTABLE.md +0 -46
  85. package/bin/skills/lakehouse-doc/references/DROPUSER.md +0 -34
  86. package/bin/skills/lakehouse-doc/references/DROPVIEW.md +0 -33
  87. package/bin/skills/lakehouse-doc/references/DataQuality.md +0 -99
  88. package/bin/skills/lakehouse-doc/references/DataSourceConfigGuide.md +0 -1
  89. package/bin/skills/lakehouse-doc/references/DataSource_ADBMySQL.md +0 -35
  90. package/bin/skills/lakehouse-doc/references/DataSource_ADB_PostgreSQL.md +0 -36
  91. package/bin/skills/lakehouse-doc/references/DataSource_AMQP.md +0 -37
  92. package/bin/skills/lakehouse-doc/references/DataSource_Amazon_DocumentDB.md +0 -115
  93. package/bin/skills/lakehouse-doc/references/DataSource_Amazon_OpenSearch.md +0 -42
  94. package/bin/skills/lakehouse-doc/references/DataSource_Aurora_MySQL.md +0 -35
  95. package/bin/skills/lakehouse-doc/references/DataSource_Aurora_PostgreSQL.md +0 -36
  96. package/bin/skills/lakehouse-doc/references/DataSource_AutoMQ.md +0 -124
  97. package/bin/skills/lakehouse-doc/references/DataSource_COS.md +0 -31
  98. package/bin/skills/lakehouse-doc/references/DataSource_ClickHouse.md +0 -36
  99. package/bin/skills/lakehouse-doc/references/DataSource_DB2.md +0 -36
  100. package/bin/skills/lakehouse-doc/references/DataSource_DM.md +0 -35
  101. package/bin/skills/lakehouse-doc/references/DataSource_Databricks.md +0 -38
  102. package/bin/skills/lakehouse-doc/references/DataSource_Doris.md +0 -34
  103. package/bin/skills/lakehouse-doc/references/DataSource_DynamoDB.md +0 -37
  104. package/bin/skills/lakehouse-doc/references/DataSource_ElasticSearch.md +0 -30
  105. package/bin/skills/lakehouse-doc/references/DataSource_Greenplum.md +0 -36
  106. package/bin/skills/lakehouse-doc/references/DataSource_HANA.md +0 -53
  107. package/bin/skills/lakehouse-doc/references/DataSource_HBase.md +0 -29
  108. package/bin/skills/lakehouse-doc/references/DataSource_Hive.md +0 -52
  109. package/bin/skills/lakehouse-doc/references/DataSource_Hologres.md +0 -36
  110. package/bin/skills/lakehouse-doc/references/DataSource_Kafka.md +0 -32
  111. package/bin/skills/lakehouse-doc/references/DataSource_MariaDB.md +0 -36
  112. package/bin/skills/lakehouse-doc/references/DataSource_MaxCompute.md +0 -32
  113. package/bin/skills/lakehouse-doc/references/DataSource_MongoDB.md +0 -36
  114. package/bin/skills/lakehouse-doc/references/DataSource_MySQL.md +0 -36
  115. package/bin/skills/lakehouse-doc/references/DataSource_OSS.md +0 -31
  116. package/bin/skills/lakehouse-doc/references/DataSource_Oracle.md +0 -35
  117. package/bin/skills/lakehouse-doc/references/DataSource_PorarDB.md +0 -37
  118. package/bin/skills/lakehouse-doc/references/DataSource_PostgreSQL.md +0 -36
  119. package/bin/skills/lakehouse-doc/references/DataSource_Redis.md +0 -55
  120. package/bin/skills/lakehouse-doc/references/DataSource_Redshift.md +0 -49
  121. package/bin/skills/lakehouse-doc/references/DataSource_RestApi.md +0 -30
  122. package/bin/skills/lakehouse-doc/references/DataSource_S3.md +0 -25
  123. package/bin/skills/lakehouse-doc/references/DataSource_SLS.md +0 -31
  124. package/bin/skills/lakehouse-doc/references/DataSource_StarRocks.md +0 -35
  125. package/bin/skills/lakehouse-doc/references/DataSource_TiDB.md +0 -36
  126. package/bin/skills/lakehouse-doc/references/Datalake_StorageConnection.md +0 -12
  127. package/bin/skills/lakehouse-doc/references/Datasource_SQLServer.md +0 -36
  128. package/bin/skills/lakehouse-doc/references/Datus_Lakehouse_Integrated_Guide.md +0 -3
  129. package/bin/skills/lakehouse-doc/references/Datus_Lakehouse_MCPServer.md +0 -111
  130. package/bin/skills/lakehouse-doc/references/Dify_Integreated_with_LakehouseMCPServer.md +0 -71
  131. package/bin/skills/lakehouse-doc/references/ELTModernDataStack.md +0 -497
  132. package/bin/skills/lakehouse-doc/references/ELT_practice.md +0 -1
  133. package/bin/skills/lakehouse-doc/references/EXPLAIN.md +0 -92
  134. package/bin/skills/lakehouse-doc/references/EXTERNALFUNCITON.md +0 -1
  135. package/bin/skills/lakehouse-doc/references/EXTERNALFUNCTION.md +0 -0
  136. package/bin/skills/lakehouse-doc/references/EXTERNALFUNCTION/345/274/200/345/217/221/346/214/207/345/215/227.md +0 -142
  137. package/bin/skills/lakehouse-doc/references/EXTERNALSCHEMA.md +0 -1
  138. package/bin/skills/lakehouse-doc/references/EXTERNALSCHMEA.md +0 -94
  139. package/bin/skills/lakehouse-doc/references/ExternalFunctionDevGuideJava.md +0 -556
  140. package/bin/skills/lakehouse-doc/references/FLOAT.md +0 -33
  141. package/bin/skills/lakehouse-doc/references/FeatureEngineeringForExpandingCustomerFeatureswithZettapark.md +0 -427
  142. package/bin/skills/lakehouse-doc/references/FileCommand.md +0 -1
  143. package/bin/skills/lakehouse-doc/references/FileFunction.md +0 -1
  144. package/bin/skills/lakehouse-doc/references/FineBI.md +0 -195
  145. package/bin/skills/lakehouse-doc/references/Full_Text_Search.md +0 -1
  146. package/bin/skills/lakehouse-doc/references/GET.md +0 -63
  147. package/bin/skills/lakehouse-doc/references/GET_PRESIGNED_URL.md +0 -91
  148. package/bin/skills/lakehouse-doc/references/GrantPriveleges.md +0 -113
  149. package/bin/skills/lakehouse-doc/references/Hive_connection.md +0 -50
  150. package/bin/skills/lakehouse-doc/references/IDENTITY-Column.md +0 -74
  151. package/bin/skills/lakehouse-doc/references/INSERT.md +0 -186
  152. package/bin/skills/lakehouse-doc/references/INT.md +0 -36
  153. package/bin/skills/lakehouse-doc/references/INTERVAL.md +0 -143
  154. package/bin/skills/lakehouse-doc/references/Ingesting_Data_from_Alibaba_Cloud_Data_Lake_into_Lakehouse.md +0 -976
  155. package/bin/skills/lakehouse-doc/references/Ingestion.md +0 -1
  156. package/bin/skills/lakehouse-doc/references/JDBC-Driver.md +0 -67
  157. package/bin/skills/lakehouse-doc/references/JDBC_MindsDB_ML_LLM.md +0 -237
  158. package/bin/skills/lakehouse-doc/references/JOIN.md +0 -204
  159. package/bin/skills/lakehouse-doc/references/JSON.md +0 -423
  160. package/bin/skills/lakehouse-doc/references/JSON_DataType.md +0 -49
  161. package/bin/skills/lakehouse-doc/references/KAFKA_Storage_connection.md +0 -1
  162. package/bin/skills/lakehouse-doc/references/Kafka_connection.md +0 -36
  163. package/bin/skills/lakehouse-doc/references/Key_Concepts.md +0 -112
  164. package/bin/skills/lakehouse-doc/references/LATERALVIEW.md +0 -78
  165. package/bin/skills/lakehouse-doc/references/Lakehouse-client-repository.md +0 -11
  166. package/bin/skills/lakehouse-doc/references/LakehouseAI.md +0 -0
  167. package/bin/skills/lakehouse-doc/references/LakehouseAI_overview.md +0 -16
  168. package/bin/skills/lakehouse-doc/references/LakehouseAI/346/246/202/350/277/260.md +0 -0
  169. package/bin/skills/lakehouse-doc/references/LakehouseDataGPTTour.md +0 -64
  170. package/bin/skills/lakehouse-doc/references/LakehouseMCPServer.md +0 -1
  171. package/bin/skills/lakehouse-doc/references/LakehouseMCPServer_intro.md +0 -493
  172. package/bin/skills/lakehouse-doc/references/LakehousePythonZettapark.md +0 -1
  173. package/bin/skills/lakehouse-doc/references/LakehouseStudioTour.md +0 -185
  174. package/bin/skills/lakehouse-doc/references/Lakehouse_Index_Best_Practice.md +0 -681
  175. package/bin/skills/lakehouse-doc/references/Lakehouse_Insight.md +0 -104
  176. package/bin/skills/lakehouse-doc/references/Lakehouse_Platform_Release_Note.md +0 -1
  177. package/bin/skills/lakehouse-doc/references/Lakehouse_Studio_101.md +0 -1
  178. package/bin/skills/lakehouse-doc/references/Lakehouse_Studio_Release_Note.md +0 -1
  179. package/bin/skills/lakehouse-doc/references/Lakehouse_Zilliz_MakeDataReadyforBIandAI.md +0 -228
  180. package/bin/skills/lakehouse-doc/references/Langchain_plug_installation.md +0 -244
  181. package/bin/skills/lakehouse-doc/references/Langchain_plug_quick_start.md +0 -225
  182. package/bin/skills/lakehouse-doc/references/Langchain_plugins_overview.md +0 -406
  183. package/bin/skills/lakehouse-doc/references/Limitation.md +0 -8
  184. package/bin/skills/lakehouse-doc/references/LoggingIn.md +0 -67
  185. package/bin/skills/lakehouse-doc/references/Logstash.md +0 -172
  186. package/bin/skills/lakehouse-doc/references/MAP.md +0 -42
  187. package/bin/skills/lakehouse-doc/references/MATERIALIZEDVIEW.md +0 -112
  188. package/bin/skills/lakehouse-doc/references/MCPServers.md +0 -267
  189. package/bin/skills/lakehouse-doc/references/MERGE.md +0 -498
  190. package/bin/skills/lakehouse-doc/references/ManageAccounts.md +0 -184
  191. package/bin/skills/lakehouse-doc/references/ManagingFilesonDatalakeVolumewithZettapark.md +0 -145
  192. package/bin/skills/lakehouse-doc/references/MigrateSnowflakeRealtimeETLPipelinetoClickzettaLakehouse.md +0 -865
  193. package/bin/skills/lakehouse-doc/references/Migrate_Spark_DataEngineeringBestPractices_Project_to_Lakehouse.md +0 -292
  194. package/bin/skills/lakehouse-doc/references/ModernDataStackWithEcosystemTools.md +0 -1
  195. package/bin/skills/lakehouse-doc/references/N8N_AI_Workflow_Integration.md +0 -1
  196. package/bin/skills/lakehouse-doc/references/N8N_Integrated_with_LakehouseMCPServer.md +0 -128
  197. package/bin/skills/lakehouse-doc/references/Notebook.md +0 -109
  198. package/bin/skills/lakehouse-doc/references/NotesandGuidelinesforUsingPartitionTables.md +0 -1627
  199. package/bin/skills/lakehouse-doc/references/OPTIMIZE.md +0 -80
  200. package/bin/skills/lakehouse-doc/references/OptimizingComputingResources.md +0 -1
  201. package/bin/skills/lakehouse-doc/references/Overview.md +0 -1
  202. package/bin/skills/lakehouse-doc/references/PUT.md +0 -70
  203. package/bin/skills/lakehouse-doc/references/PerformingVectorandScalarRetrievalinheSameTableinLakehouse.md +0 -84
  204. package/bin/skills/lakehouse-doc/references/Permission_application.md +0 -43
  205. package/bin/skills/lakehouse-doc/references/PowerBI.md +0 -113
  206. package/bin/skills/lakehouse-doc/references/PythonSDKVersionHistory.md +0 -24
  207. package/bin/skills/lakehouse-doc/references/PythonSample_put_gharchive2oss.md +0 -153
  208. package/bin/skills/lakehouse-doc/references/PythonSample_put_github_rt_events.md +0 -336
  209. package/bin/skills/lakehouse-doc/references/PythonSqlAlchemyVersionHistory.md +0 -23
  210. package/bin/skills/lakehouse-doc/references/PythonTaskDev.md +0 -1
  211. package/bin/skills/lakehouse-doc/references/Python_Task.md +0 -28
  212. package/bin/skills/lakehouse-doc/references/Query_SnowflakeOpenCatalog_Icebergtable.md +0 -114
  213. package/bin/skills/lakehouse-doc/references/QuickStartwithCopycommand.md +0 -79
  214. package/bin/skills/lakehouse-doc/references/README.md +0 -1
  215. package/bin/skills/lakehouse-doc/references/REFRESH.md +0 -37
  216. package/bin/skills/lakehouse-doc/references/REMOTEFUNCTION.md +0 -1
  217. package/bin/skills/lakehouse-doc/references/RN_2023-08-07.md +0 -67
  218. package/bin/skills/lakehouse-doc/references/RN_2023-09-05.md +0 -75
  219. package/bin/skills/lakehouse-doc/references/RN_2023-09-18.md +0 -50
  220. package/bin/skills/lakehouse-doc/references/RN_2023-09-20.md +0 -55
  221. package/bin/skills/lakehouse-doc/references/RN_2023-10-25.md +0 -102
  222. package/bin/skills/lakehouse-doc/references/RN_2023-11-09.md +0 -84
  223. package/bin/skills/lakehouse-doc/references/RN_2023-12-25.md +0 -84
  224. package/bin/skills/lakehouse-doc/references/RN_2024-01-05.md +0 -78
  225. package/bin/skills/lakehouse-doc/references/RN_2024-02-05.md +0 -87
  226. package/bin/skills/lakehouse-doc/references/RN_2024-03-22.md +0 -76
  227. package/bin/skills/lakehouse-doc/references/RN_2024-04-10.md +0 -61
  228. package/bin/skills/lakehouse-doc/references/RN_2024-04-16.md +0 -38
  229. package/bin/skills/lakehouse-doc/references/RN_2024-05-10.md +0 -47
  230. package/bin/skills/lakehouse-doc/references/RN_2024-05-15.md +0 -43
  231. package/bin/skills/lakehouse-doc/references/RN_2024-05-24.md +0 -143
  232. package/bin/skills/lakehouse-doc/references/RN_2024-06-06.md +0 -59
  233. package/bin/skills/lakehouse-doc/references/RN_2024-06-07.md +0 -71
  234. package/bin/skills/lakehouse-doc/references/RN_2024-06-27.md +0 -55
  235. package/bin/skills/lakehouse-doc/references/RN_2024-07-22.md +0 -121
  236. package/bin/skills/lakehouse-doc/references/RN_2024-07-24.md +0 -58
  237. package/bin/skills/lakehouse-doc/references/RN_2024-08-07.md +0 -42
  238. package/bin/skills/lakehouse-doc/references/RN_2024-09-26.md +0 -106
  239. package/bin/skills/lakehouse-doc/references/RN_2024-10-15.md +0 -49
  240. package/bin/skills/lakehouse-doc/references/RN_2024_11_11.md +0 -50
  241. package/bin/skills/lakehouse-doc/references/RN_2024_12_12.md +0 -52
  242. package/bin/skills/lakehouse-doc/references/RN_2024_12_25.md +0 -40
  243. package/bin/skills/lakehouse-doc/references/RN_2025-03-05.md +0 -68
  244. package/bin/skills/lakehouse-doc/references/RN_2025-04-01.md +0 -74
  245. package/bin/skills/lakehouse-doc/references/RN_2025-05-20.md +0 -90
  246. package/bin/skills/lakehouse-doc/references/RN_2025-07-03.md +0 -100
  247. package/bin/skills/lakehouse-doc/references/RN_2025-08-25.md +0 -106
  248. package/bin/skills/lakehouse-doc/references/RN_2025_03_03.md +0 -141
  249. package/bin/skills/lakehouse-doc/references/RN_2025_04_22.md +0 -110
  250. package/bin/skills/lakehouse-doc/references/RN_2025_07_15.md +0 -60
  251. package/bin/skills/lakehouse-doc/references/RN_2025_10_23.md +0 -85
  252. package/bin/skills/lakehouse-doc/references/RN_2025_10_30.md +0 -68
  253. package/bin/skills/lakehouse-doc/references/RN_2025_12_17.md +0 -71
  254. package/bin/skills/lakehouse-doc/references/RN_2026_1_30-2.0.0.md +0 -43
  255. package/bin/skills/lakehouse-doc/references/RN_LH_2025_12_30.md +0 -73
  256. package/bin/skills/lakehouse-doc/references/RN_LH_2026_03_13.md +0 -47
  257. package/bin/skills/lakehouse-doc/references/Refactor_ELT_practice.md +0 -241
  258. package/bin/skills/lakehouse-doc/references/RemoteFunctionAsUDF.md +0 -1
  259. package/bin/skills/lakehouse-doc/references/RemoteFunctionBestPractice.md +0 -350
  260. package/bin/skills/lakehouse-doc/references/RemoteFunctionDevGuidePython3.md +0 -571
  261. package/bin/skills/lakehouse-doc/references/RemoteFunctionOnACR.md +0 -249
  262. package/bin/skills/lakehouse-doc/references/RemoteFunctionintro.md +0 -54
  263. package/bin/skills/lakehouse-doc/references/RemoteFunction/344/273/213/347/273/215.md +0 -1
  264. package/bin/skills/lakehouse-doc/references/RemoteFunction/345/274/200/345/217/221/346/214/207/345/215/227Python3.md +0 -1
  265. package/bin/skills/lakehouse-doc/references/RemoteFunction/346/234/200/344/275/263/345/256/236/350/267/265.md +0 -1
  266. package/bin/skills/lakehouse-doc/references/RevokePriveleges.md +0 -98
  267. package/bin/skills/lakehouse-doc/references/SCHEMA.md +0 -48
  268. package/bin/skills/lakehouse-doc/references/SCHEMADDL.md +0 -0
  269. package/bin/skills/lakehouse-doc/references/SHOW-INDEX.md +0 -22
  270. package/bin/skills/lakehouse-doc/references/SHOWCONNECTIONS.md +0 -44
  271. package/bin/skills/lakehouse-doc/references/SHOWFUNCTIONS.md +0 -38
  272. package/bin/skills/lakehouse-doc/references/SHOWGRANTS.md +0 -62
  273. package/bin/skills/lakehouse-doc/references/SHOWROLES.md +0 -59
  274. package/bin/skills/lakehouse-doc/references/SHOWTABLES.md +0 -46
  275. package/bin/skills/lakehouse-doc/references/SHOWUSERS.md +0 -26
  276. package/bin/skills/lakehouse-doc/references/SMALLINT.md +0 -48
  277. package/bin/skills/lakehouse-doc/references/SQL_CREATE_TABLE_GUIDE.md +0 -1210
  278. package/bin/skills/lakehouse-doc/references/SQL_DML_Considerations.md +0 -601
  279. package/bin/skills/lakehouse-doc/references/SQL_Join_Guide.md +0 -655
  280. package/bin/skills/lakehouse-doc/references/SQL_SELECT_Considerations.md +0 -1818
  281. package/bin/skills/lakehouse-doc/references/SQL_With_CTE_Guide.md +0 -1510
  282. package/bin/skills/lakehouse-doc/references/SQL_customers.md +0 -74
  283. package/bin/skills/lakehouse-doc/references/SQL_revenue.md +0 -31
  284. package/bin/skills/lakehouse-doc/references/STRING.md +0 -80
  285. package/bin/skills/lakehouse-doc/references/STRUCT.md +0 -33
  286. package/bin/skills/lakehouse-doc/references/SUMMARY.md +0 -1279
  287. package/bin/skills/lakehouse-doc/references/Security_system_inventory_and_optimization_based_Information_Schema.md +0 -412
  288. package/bin/skills/lakehouse-doc/references/Server_data_for_AI.md +0 -15
  289. package/bin/skills/lakehouse-doc/references/SlowlyChangingDimensionsInLakehouseUsingStreamsandTasks.md +0 -616
  290. package/bin/skills/lakehouse-doc/references/Spark_Lakehouse_iceberg_REST.md +0 -151
  291. package/bin/skills/lakehouse-doc/references/StudioDI_PrivateLinkVPC_fromRDS.md +0 -105
  292. package/bin/skills/lakehouse-doc/references/Supported_Cloud_Platforms.md +0 -40
  293. package/bin/skills/lakehouse-doc/references/TABLE.md +0 -49
  294. package/bin/skills/lakehouse-doc/references/TIMESTAMP.md +0 -56
  295. package/bin/skills/lakehouse-doc/references/TIMETRAVEL.md +0 -207
  296. package/bin/skills/lakehouse-doc/references/TINYINT.md +0 -63
  297. package/bin/skills/lakehouse-doc/references/TPC-H100G_experience.md +0 -49
  298. package/bin/skills/lakehouse-doc/references/TRUNCATE.md +0 -144
  299. package/bin/skills/lakehouse-doc/references/TableDesign.md +0 -270
  300. package/bin/skills/lakehouse-doc/references/TableauConnectToLakehouse.md +0 -64
  301. package/bin/skills/lakehouse-doc/references/Tutorials.md +0 -1
  302. package/bin/skills/lakehouse-doc/references/UNDROP-TABLE.md +0 -163
  303. package/bin/skills/lakehouse-doc/references/UPDATE.md +0 -70
  304. package/bin/skills/lakehouse-doc/references/USESCHEMA.md +0 -53
  305. package/bin/skills/lakehouse-doc/references/UnifiedWorkflowIntro.md +0 -31
  306. package/bin/skills/lakehouse-doc/references/UnifiedWorkflow_demo.md +0 -175
  307. package/bin/skills/lakehouse-doc/references/Unstructured_io.md +0 -735
  308. package/bin/skills/lakehouse-doc/references/VARCHARleghth.md +0 -42
  309. package/bin/skills/lakehouse-doc/references/VIEW.md +0 -47
  310. package/bin/skills/lakehouse-doc/references/Volume_LIST.md +0 -52
  311. package/bin/skills/lakehouse-doc/references/WINDOWFUNCTION.md +0 -561
  312. package/bin/skills/lakehouse-doc/references/WITH.md +0 -41
  313. package/bin/skills/lakehouse-doc/references/ZettaparkQuickStart.md +0 -453
  314. package/bin/skills/lakehouse-doc/references/Zettapark_Data_Engineering_Demo.md +0 -348
  315. package/bin/skills/lakehouse-doc/references/a_comprehensive_guide_to_ingesting_data_into_clickzetta_lakehouse.md +0 -66
  316. package/bin/skills/lakehouse-doc/references/access-control-configration.md +0 -249
  317. package/bin/skills/lakehouse-doc/references/access-control-general.md +0 -82
  318. package/bin/skills/lakehouse-doc/references/access-control.md +0 -240
  319. package/bin/skills/lakehouse-doc/references/account_user_management.md +0 -105
  320. package/bin/skills/lakehouse-doc/references/accountfunds.md +0 -87
  321. package/bin/skills/lakehouse-doc/references/agg_function.md +0 -1
  322. package/bin/skills/lakehouse-doc/references/ai_ready_data_overview.md +0 -13
  323. package/bin/skills/lakehouse-doc/references/airbyte.md +0 -95
  324. package/bin/skills/lakehouse-doc/references/alert.md +0 -143
  325. package/bin/skills/lakehouse-doc/references/alicloud-arn-externalid.md +0 -51
  326. package/bin/skills/lakehouse-doc/references/alicloud_byos_configration.md +0 -129
  327. package/bin/skills/lakehouse-doc/references/aliyun_storage_connection.md +0 -135
  328. package/bin/skills/lakehouse-doc/references/alter-dynamic-table.md +0 -375
  329. package/bin/skills/lakehouse-doc/references/alter-external-schema.md +0 -20
  330. package/bin/skills/lakehouse-doc/references/alter-materialzied-view.md +0 -238
  331. package/bin/skills/lakehouse-doc/references/alter-share.md +0 -43
  332. package/bin/skills/lakehouse-doc/references/alter-user.md +0 -13
  333. package/bin/skills/lakehouse-doc/references/alter-vcluster.md +0 -134
  334. package/bin/skills/lakehouse-doc/references/alter-worksapce.md +0 -55
  335. package/bin/skills/lakehouse-doc/references/alter.md +0 -35
  336. package/bin/skills/lakehouse-doc/references/analysis_internet_data_nyc_green_data.md +0 -449
  337. package/bin/skills/lakehouse-doc/references/analytics_cluster_best_practices.md +0 -377
  338. package/bin/skills/lakehouse-doc/references/analyze-table.md +0 -58
  339. package/bin/skills/lakehouse-doc/references/array_size.md +0 -34
  340. package/bin/skills/lakehouse-doc/references/authentication.md +0 -53
  341. package/bin/skills/lakehouse-doc/references/authoritymanagement.md +0 -1
  342. package/bin/skills/lakehouse-doc/references/auto-index.md +0 -57
  343. package/bin/skills/lakehouse-doc/references/aws_storage_connection.md +0 -114
  344. package/bin/skills/lakehouse-doc/references/backfilling_data.md +0 -60
  345. package/bin/skills/lakehouse-doc/references/batch_sync.md +0 -54
  346. package/bin/skills/lakehouse-doc/references/batch_sync_Sop.md +0 -135
  347. package/bin/skills/lakehouse-doc/references/batchloadparquertfileintoLakehouse.md +0 -79
  348. package/bin/skills/lakehouse-doc/references/bestpractice_bazhuanyu.md +0 -1
  349. package/bin/skills/lakehouse-doc/references/billing.md +0 -62
  350. package/bin/skills/lakehouse-doc/references/bitmap-type.md +0 -524
  351. package/bin/skills/lakehouse-doc/references/bitmap_uba_guide.md +0 -1190
  352. package/bin/skills/lakehouse-doc/references/bloomfilter-summary.md +0 -164
  353. package/bin/skills/lakehouse-doc/references/book.json +0 -17
  354. package/bin/skills/lakehouse-doc/references/bring_your_own_storage.md +0 -1
  355. package/bin/skills/lakehouse-doc/references/build-inverted-index.md +0 -27
  356. package/bin/skills/lakehouse-doc/references/build_rag_with_langchain.md +0 -616
  357. package/bin/skills/lakehouse-doc/references/bulkload-summary.md +0 -37
  358. package/bin/skills/lakehouse-doc/references/bulkloadv1-java-sdk.md +0 -178
  359. package/bin/skills/lakehouse-doc/references/bulkloadv1-python-sdk.md +0 -169
  360. package/bin/skills/lakehouse-doc/references/byos_general.md +0 -165
  361. package/bin/skills/lakehouse-doc/references/byos_tencentcloud_configration.md +0 -138
  362. package/bin/skills/lakehouse-doc/references/cache-command.md +0 -39
  363. package/bin/skills/lakehouse-doc/references/cancel-job.md +0 -51
  364. package/bin/skills/lakehouse-doc/references/cardinality_array.md +0 -45
  365. package/bin/skills/lakehouse-doc/references/charge_analysis_with_lakehouse_mcp_server.md +0 -393
  366. package/bin/skills/lakehouse-doc/references/clone-doc.md +0 -111
  367. package/bin/skills/lakehouse-doc/references/cloud_object_storage.md +0 -1
  368. package/bin/skills/lakehouse-doc/references/cluster-table-guide.md +0 -68
  369. package/bin/skills/lakehouse-doc/references/cluster-table.md +0 -64
  370. package/bin/skills/lakehouse-doc/references/composite_task.md +0 -178
  371. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_3rd_tools.md +0 -11
  372. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_dbv_sql_put.md +0 -48
  373. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_environment_and_data_generate.md +0 -627
  374. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_javasdk_buckload_realtime.md +0 -740
  375. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_kafka_realtime_sync.md +0 -71
  376. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_local_file_into_table_by_studio.md +0 -64
  377. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_overview.md +0 -66
  378. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_pipe_kafka.md +0 -7
  379. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_pipe_oss.md +0 -7
  380. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_batchload_public_network.md +0 -52
  381. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_python_node.md +0 -111
  382. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_realtime_cdc_public_network.md +0 -249
  383. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_studio_sql_insert.md +0 -180
  384. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_zettapark_put_file_to_lake.md +0 -206
  385. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_zettapark_save_as_table.md +0 -79
  386. package/bin/skills/lakehouse-doc/references/comprehensive_guide_to_ingesting_zettapark_sql_insert.md +0 -113
  387. package/bin/skills/lakehouse-doc/references/computation.md +0 -6
  388. package/bin/skills/lakehouse-doc/references/concurrency_scaling.md +0 -57
  389. package/bin/skills/lakehouse-doc/references/config-datasource.md +0 -79
  390. package/bin/skills/lakehouse-doc/references/config_volume_dify_storage.md +0 -254
  391. package/bin/skills/lakehouse-doc/references/connect-with-cli.md +0 -155
  392. package/bin/skills/lakehouse-doc/references/connect_to_Lakehouse.md +0 -1
  393. package/bin/skills/lakehouse-doc/references/connection-guide.md +0 -61
  394. package/bin/skills/lakehouse-doc/references/continue-job.md +0 -260
  395. package/bin/skills/lakehouse-doc/references/conversational_analytics_datagpt.md +0 -1
  396. package/bin/skills/lakehouse-doc/references/copy-into-table.md +0 -398
  397. package/bin/skills/lakehouse-doc/references/cos_storage_connection.md +0 -73
  398. package/bin/skills/lakehouse-doc/references/cos_volume_creation.md +0 -39
  399. package/bin/skills/lakehouse-doc/references/cost_management.md +0 -1
  400. package/bin/skills/lakehouse-doc/references/create-api-connection.md +0 -363
  401. package/bin/skills/lakehouse-doc/references/create-catalog-connection.md +0 -220
  402. package/bin/skills/lakehouse-doc/references/create-dynamic-table.md +0 -910
  403. package/bin/skills/lakehouse-doc/references/create-external-catalog.md +0 -305
  404. package/bin/skills/lakehouse-doc/references/create-external-table.md +0 -78
  405. package/bin/skills/lakehouse-doc/references/create-hive-catalog.md +0 -77
  406. package/bin/skills/lakehouse-doc/references/create-inverted-index.md +0 -163
  407. package/bin/skills/lakehouse-doc/references/create-kafka-external.md +0 -300
  408. package/bin/skills/lakehouse-doc/references/create-schema-from-share.md +0 -45
  409. package/bin/skills/lakehouse-doc/references/create-share.md +0 -46
  410. package/bin/skills/lakehouse-doc/references/create-sql-function.md +0 -120
  411. package/bin/skills/lakehouse-doc/references/create-storage-connection.md +0 -346
  412. package/bin/skills/lakehouse-doc/references/create-synonym.md +0 -75
  413. package/bin/skills/lakehouse-doc/references/create-table-ddl.md +0 -405
  414. package/bin/skills/lakehouse-doc/references/create-table-stream.md +0 -226
  415. package/bin/skills/lakehouse-doc/references/create-vector-index.md +0 -115
  416. package/bin/skills/lakehouse-doc/references/create.md +0 -46
  417. package/bin/skills/lakehouse-doc/references/create_cluster.md +0 -121
  418. package/bin/skills/lakehouse-doc/references/creating_alicloud_privatelinkendpoint.md +0 -37
  419. package/bin/skills/lakehouse-doc/references/creating_alicloud_privatelinkservice.md +0 -31
  420. package/bin/skills/lakehouse-doc/references/creating_tencentcloud_privatelinkendpoint.md +0 -33
  421. package/bin/skills/lakehouse-doc/references/creating_tencentcloud_privatelinkservice.md +0 -19
  422. package/bin/skills/lakehouse-doc/references/czguide-intro-to-cdc-using-clickzetta-rtsync-dynamic-tables.md +0 -717
  423. package/bin/skills/lakehouse-doc/references/data-catalog.md +0 -1
  424. package/bin/skills/lakehouse-doc/references/data-integration-intro.md +0 -60
  425. package/bin/skills/lakehouse-doc/references/data-integration.md +0 -10
  426. package/bin/skills/lakehouse-doc/references/data-lifecycle.md +0 -46
  427. package/bin/skills/lakehouse-doc/references/data-load-summary.md +0 -71
  428. package/bin/skills/lakehouse-doc/references/data-mamager-tool.md +0 -1
  429. package/bin/skills/lakehouse-doc/references/data-recover.md +0 -52
  430. package/bin/skills/lakehouse-doc/references/data-type.md +0 -1
  431. package/bin/skills/lakehouse-doc/references/data-types-timestamp-ntz.md +0 -139
  432. package/bin/skills/lakehouse-doc/references/data.md +0 -1
  433. package/bin/skills/lakehouse-doc/references/data_catalog.md +0 -106
  434. package/bin/skills/lakehouse-doc/references/data_clean_with_sql.md +0 -406
  435. package/bin/skills/lakehouse-doc/references/data_ecosystem.md +0 -1
  436. package/bin/skills/lakehouse-doc/references/data_ops.md +0 -7
  437. package/bin/skills/lakehouse-doc/references/data_org.md +0 -1
  438. package/bin/skills/lakehouse-doc/references/data_privacy.md +0 -50
  439. package/bin/skills/lakehouse-doc/references/data_result_profile.md +0 -22
  440. package/bin/skills/lakehouse-doc/references/data_security.md +0 -1
  441. package/bin/skills/lakehouse-doc/references/data_sharing_between_accounts_guide.md +0 -331
  442. package/bin/skills/lakehouse-doc/references/data_transfer_datalake.md +0 -1
  443. package/bin/skills/lakehouse-doc/references/data_visualization.md +0 -96
  444. package/bin/skills/lakehouse-doc/references/databricks_yunqi_integration_guide_v2.md +0 -811
  445. package/bin/skills/lakehouse-doc/references/datagpt_bestpractice.md +0 -1
  446. package/bin/skills/lakehouse-doc/references/datagpt_data_source.md +0 -58
  447. package/bin/skills/lakehouse-doc/references/datagpt_get_accurate_answers.md +0 -34
  448. package/bin/skills/lakehouse-doc/references/datagpt_intro.md +0 -1
  449. package/bin/skills/lakehouse-doc/references/datagpt_quickstart.md +0 -94
  450. package/bin/skills/lakehouse-doc/references/datagpt_tutorial.md +0 -1
  451. package/bin/skills/lakehouse-doc/references/datalake_FAQ.md +0 -54
  452. package/bin/skills/lakehouse-doc/references/datalake_overview.md +0 -17
  453. package/bin/skills/lakehouse-doc/references/datalake_privilege.md +0 -55
  454. package/bin/skills/lakehouse-doc/references/datalake_query_ingest.md +0 -18
  455. package/bin/skills/lakehouse-doc/references/datalake_unstructure_data.md +0 -3
  456. package/bin/skills/lakehouse-doc/references/datalake_volume.md +0 -92
  457. package/bin/skills/lakehouse-doc/references/datalake_volume_anlytics.md +0 -1
  458. package/bin/skills/lakehouse-doc/references/datalake_volume_object.md +0 -1
  459. package/bin/skills/lakehouse-doc/references/dataops_practice.md +0 -105
  460. package/bin/skills/lakehouse-doc/references/datasharing.md +0 -322
  461. package/bin/skills/lakehouse-doc/references/datasharing_catalog.md +0 -1
  462. package/bin/skills/lakehouse-doc/references/datasource_ip_whitelist.md +0 -93
  463. package/bin/skills/lakehouse-doc/references/datasources.md +0 -62
  464. package/bin/skills/lakehouse-doc/references/datatype-cast.md +0 -105
  465. package/bin/skills/lakehouse-doc/references/datatype-conversion.md +0 -85
  466. package/bin/skills/lakehouse-doc/references/datetime_patterns.md +0 -61
  467. package/bin/skills/lakehouse-doc/references/datus_lakehouse_installation.md +0 -376
  468. package/bin/skills/lakehouse-doc/references/datus_lakehouse_solution_overview.md +0 -148
  469. package/bin/skills/lakehouse-doc/references/db_dw_connection.md +0 -1
  470. package/bin/skills/lakehouse-doc/references/default-value.md +0 -89
  471. package/bin/skills/lakehouse-doc/references/delta-lake.md +0 -185
  472. package/bin/skills/lakehouse-doc/references/desc-catalog-table.md +0 -33
  473. package/bin/skills/lakehouse-doc/references/desc-catalog.md +0 -31
  474. package/bin/skills/lakehouse-doc/references/desc-dynamic-table.md +0 -62
  475. package/bin/skills/lakehouse-doc/references/desc-external-schemas.md +0 -66
  476. package/bin/skills/lakehouse-doc/references/desc-external-table.md +0 -70
  477. package/bin/skills/lakehouse-doc/references/desc-function.md +0 -16
  478. package/bin/skills/lakehouse-doc/references/desc-history-dynamic-table.md +0 -50
  479. package/bin/skills/lakehouse-doc/references/desc-history-table.md +0 -73
  480. package/bin/skills/lakehouse-doc/references/desc-history.md +0 -73
  481. package/bin/skills/lakehouse-doc/references/desc-share.md +0 -59
  482. package/bin/skills/lakehouse-doc/references/desc-table-stream.md +0 -44
  483. package/bin/skills/lakehouse-doc/references/desc-vcluster.md +0 -42
  484. package/bin/skills/lakehouse-doc/references/describe.md +0 -38
  485. package/bin/skills/lakehouse-doc/references/dify_config_lakehouse_as_vectordb.md +0 -286
  486. package/bin/skills/lakehouse-doc/references/dify_yunqilakehouse_integration_overview.md +0 -188
  487. package/bin/skills/lakehouse-doc/references/discovery_analysis_data_in_json_file_on_external_volume.md +0 -625
  488. package/bin/skills/lakehouse-doc/references/discovery_analysis_data_in_parquert_file_on_external_volume.md +0 -599
  489. package/bin/skills/lakehouse-doc/references/download-data.md +0 -1
  490. package/bin/skills/lakehouse-doc/references/drop-dynamic-table.md +0 -46
  491. package/bin/skills/lakehouse-doc/references/drop-external-schema.md +0 -44
  492. package/bin/skills/lakehouse-doc/references/drop-external-table.md +0 -43
  493. package/bin/skills/lakehouse-doc/references/drop-function.md +0 -36
  494. package/bin/skills/lakehouse-doc/references/drop-share.md +0 -43
  495. package/bin/skills/lakehouse-doc/references/drop-synonym.md +0 -35
  496. package/bin/skills/lakehouse-doc/references/drop-table-stream.md +0 -42
  497. package/bin/skills/lakehouse-doc/references/drop-vcluster.md +0 -52
  498. package/bin/skills/lakehouse-doc/references/drop.md +0 -32
  499. package/bin/skills/lakehouse-doc/references/dynamic-mask.md +0 -201
  500. package/bin/skills/lakehouse-doc/references/dynamic-table-incre.md +0 -62
  501. package/bin/skills/lakehouse-doc/references/dynamic-table-introduce.md +0 -339
  502. package/bin/skills/lakehouse-doc/references/dynamicTable-DML-sql.md +0 -52
  503. package/bin/skills/lakehouse-doc/references/dynamicTable-dml.md +0 -48
  504. package/bin/skills/lakehouse-doc/references/dynamicTable-parmaters.md +0 -425
  505. package/bin/skills/lakehouse-doc/references/dynamic_table_summary.md +0 -366
  506. package/bin/skills/lakehouse-doc/references/dynamic_table_task.md +0 -73
  507. package/bin/skills/lakehouse-doc/references/dynamic_table_using_studio.md +0 -159
  508. package/bin/skills/lakehouse-doc/references/dynamictable.md +0 -56
  509. package/bin/skills/lakehouse-doc/references/eco_integration/Zeppelin.md +0 -84
  510. package/bin/skills/lakehouse-doc/references/eco_integration/airbyte.md +0 -75
  511. package/bin/skills/lakehouse-doc/references/eco_integration/datagrip-lakehouse.md +0 -56
  512. package/bin/skills/lakehouse-doc/references/eco_integration/datax.md +0 -154
  513. package/bin/skills/lakehouse-doc/references/eco_integration/dbeaver-lakehouse.md +0 -67
  514. package/bin/skills/lakehouse-doc/references/eco_integration/dbt.md +0 -139
  515. package/bin/skills/lakehouse-doc/references/eco_integration/rath.md +0 -87
  516. package/bin/skills/lakehouse-doc/references/eco_integration/sqlline.md +0 -82
  517. package/bin/skills/lakehouse-doc/references/eco_integration/sqlworkbench-j-lakehouse.md +0 -54
  518. package/bin/skills/lakehouse-doc/references/eco_integration/streamlit.md +0 -117
  519. package/bin/skills/lakehouse-doc/references/eco_integration/superset.md +0 -109
  520. package/bin/skills/lakehouse-doc/references/eco_integration/trino.md +0 -75
  521. package/bin/skills/lakehouse-doc/references/ecosystem-all.md +0 -24
  522. package/bin/skills/lakehouse-doc/references/export_data_with_data-integration.md +0 -3
  523. package/bin/skills/lakehouse-doc/references/external-Volume.md +0 -10
  524. package/bin/skills/lakehouse-doc/references/external-catalog-summary.md +0 -42
  525. package/bin/skills/lakehouse-doc/references/external-function-summary.md +0 -0
  526. package/bin/skills/lakehouse-doc/references/external-hudi-table.md +0 -187
  527. package/bin/skills/lakehouse-doc/references/external-table-guide.md +0 -96
  528. package/bin/skills/lakehouse-doc/references/external_object_user_guide.md +0 -298
  529. package/bin/skills/lakehouse-doc/references/external_volume.md +0 -1
  530. package/bin/skills/lakehouse-doc/references/f6fc6447ee.md +0 -151
  531. package/bin/skills/lakehouse-doc/references/federation-query.md +0 -1
  532. package/bin/skills/lakehouse-doc/references/finebi-mysql.md +0 -104
  533. package/bin/skills/lakehouse-doc/references/flink-write-connector.md +0 -695
  534. package/bin/skills/lakehouse-doc/references/from_lakehouse_to_volume.md +0 -98
  535. package/bin/skills/lakehouse-doc/references/from_volume_to_table.md +0 -45
  536. package/bin/skills/lakehouse-doc/references/fulltext_indexes_guide.md +0 -1180
  537. package/bin/skills/lakehouse-doc/references/generated-column.md +0 -113
  538. package/bin/skills/lakehouse-doc/references/generated_columns_guide.md +0 -847
  539. package/bin/skills/lakehouse-doc/references/geospatial_analysis.md +0 -558
  540. package/bin/skills/lakehouse-doc/references/get-started-with-sample-data.md +0 -83
  541. package/bin/skills/lakehouse-doc/references/getting_started_with_vcluster_for_processing_analytics.md +0 -471
  542. package/bin/skills/lakehouse-doc/references/grant-to-share.md +0 -55
  543. package/bin/skills/lakehouse-doc/references/grant-user-privileges.md +0 -100
  544. package/bin/skills/lakehouse-doc/references/groupby.md +0 -1260
  545. package/bin/skills/lakehouse-doc/references/guides-overview-connecting.md +0 -46
  546. package/bin/skills/lakehouse-doc/references/ide.md +0 -2
  547. package/bin/skills/lakehouse-doc/references/ifnull.md +0 -72
  548. package/bin/skills/lakehouse-doc/references/ilike.md +0 -89
  549. package/bin/skills/lakehouse-doc/references/import_data_with_data-integration.md +0 -3
  550. package/bin/skills/lakehouse-doc/references/importdatabypythonintoLakehouse.md +0 -134
  551. package/bin/skills/lakehouse-doc/references/index2.md +0 -1
  552. package/bin/skills/lakehouse-doc/references/instance-informaiton-schema-summary.md +0 -51
  553. package/bin/skills/lakehouse-doc/references/instance-informaiton-schema.md +0 -278
  554. package/bin/skills/lakehouse-doc/references/instance-information_schema.md +0 -1
  555. package/bin/skills/lakehouse-doc/references/internal_volume.md +0 -271
  556. package/bin/skills/lakehouse-doc/references/intro-supported-features.md +0 -48
  557. package/bin/skills/lakehouse-doc/references/inverted-index.md +0 -445
  558. package/bin/skills/lakehouse-doc/references/inverted_idx_bm25_param.md +0 -251
  559. package/bin/skills/lakehouse-doc/references/inverted_idx_multi-match.md +0 -89
  560. package/bin/skills/lakehouse-doc/references/is-null.md +0 -59
  561. package/bin/skills/lakehouse-doc/references/it-operation-management.md +0 -1
  562. package/bin/skills/lakehouse-doc/references/java_reference/client.md +0 -49
  563. package/bin/skills/lakehouse-doc/references/java_reference/java-sdk-release-notes.md +0 -32
  564. package/bin/skills/lakehouse-doc/references/java_reference/java-sdk-summary.md +0 -138
  565. package/bin/skills/lakehouse-doc/references/java_reference/jdbc.md +0 -211
  566. package/bin/skills/lakehouse-doc/references/java_reference/realtime-upload.md +0 -295
  567. package/bin/skills/lakehouse-doc/references/jdbc_task.md +0 -37
  568. package/bin/skills/lakehouse-doc/references/job-manage.md +0 -1
  569. package/bin/skills/lakehouse-doc/references/job_history_analysis_with_information_schema.md +0 -597
  570. package/bin/skills/lakehouse-doc/references/jobprofile-bestpractices.md +0 -104
  571. package/bin/skills/lakehouse-doc/references/json_analyze.md +0 -422
  572. package/bin/skills/lakehouse-doc/references/json_data_process_guide.md +0 -881
  573. package/bin/skills/lakehouse-doc/references/json_guide_for_complex_biz_cases.md +0 -1899
  574. package/bin/skills/lakehouse-doc/references/kafka-external-table.md +0 -103
  575. package/bin/skills/lakehouse-doc/references/lakehouse-ai.md +0 -1
  576. package/bin/skills/lakehouse-doc/references/lakehouse-quick-experience_guide.md +0 -964
  577. package/bin/skills/lakehouse-doc/references/lakehouse-table-stream-best-practices.md +0 -500
  578. package/bin/skills/lakehouse-doc/references/lakehouse_billing_anomaly_alert_configuration_guide.md +0 -226
  579. package/bin/skills/lakehouse-doc/references/lakehouse_instance_overview.md +0 -39
  580. package/bin/skills/lakehouse-doc/references/lakehouse_table_design_guide.md +0 -2676
  581. package/bin/skills/lakehouse-doc/references/langchain.md +0 -71
  582. package/bin/skills/lakehouse-doc/references/langchain_basic_samples.md +0 -606
  583. package/bin/skills/lakehouse-doc/references/langchain_integration.md +0 -1
  584. package/bin/skills/lakehouse-doc/references/left.md +0 -51
  585. package/bin/skills/lakehouse-doc/references/like.md +0 -115
  586. package/bin/skills/lakehouse-doc/references/list-partition.md +0 -121
  587. package/bin/skills/lakehouse-doc/references/llama-index.md +0 -57
  588. package/bin/skills/lakehouse-doc/references/llms-full.txt +0 -1286
  589. package/bin/skills/lakehouse-doc/references/llms.txt +0 -71
  590. package/bin/skills/lakehouse-doc/references/load-data-local.md +0 -82
  591. package/bin/skills/lakehouse-doc/references/load-data-oss.md +0 -174
  592. package/bin/skills/lakehouse-doc/references/management.md +0 -5
  593. package/bin/skills/lakehouse-doc/references/managing-instance.md +0 -67
  594. package/bin/skills/lakehouse-doc/references/mapjoin.md +0 -62
  595. package/bin/skills/lakehouse-doc/references/materialized_ddl.md +0 -1
  596. package/bin/skills/lakehouse-doc/references/meta-objects-and-privileges.md +0 -271
  597. package/bin/skills/lakehouse-doc/references/metabase.md +0 -73
  598. package/bin/skills/lakehouse-doc/references/metadata_show_desc_command_guide.md +0 -711
  599. package/bin/skills/lakehouse-doc/references/metrics_answer_build.md +0 -46
  600. package/bin/skills/lakehouse-doc/references/mindsdb.md +0 -269
  601. package/bin/skills/lakehouse-doc/references/monitoring_and_alerting.md +0 -177
  602. package/bin/skills/lakehouse-doc/references/monitoring_item_specification.md +0 -44
  603. package/bin/skills/lakehouse-doc/references/multi_cloud_instance_manage_with_mcp_server.md +0 -281
  604. package/bin/skills/lakehouse-doc/references/multitable_batch_sync.md +0 -463
  605. package/bin/skills/lakehouse-doc/references/multitable_realtime_sync.md +0 -412
  606. package/bin/skills/lakehouse-doc/references/multitable_realtime_sync_sop.md +0 -593
  607. package/bin/skills/lakehouse-doc/references/n8n_Integreated_with_lakehouse_mcp_server.md +0 -494
  608. package/bin/skills/lakehouse-doc/references/navicat-mysql.md +0 -65
  609. package/bin/skills/lakehouse-doc/references/network_policy.md +0 -281
  610. package/bin/skills/lakehouse-doc/references/nyc_green_taxi_data_clean_transform_with_mcp_server.md +0 -315
  611. package/bin/skills/lakehouse-doc/references/object-model-overview.md +0 -70
  612. package/bin/skills/lakehouse-doc/references/object_identifier.md +0 -259
  613. package/bin/skills/lakehouse-doc/references/object_model_design.md +0 -1
  614. package/bin/skills/lakehouse-doc/references/opensource/travel.md +0 -134
  615. package/bin/skills/lakehouse-doc/references/operation-maintenance.md +0 -172
  616. package/bin/skills/lakehouse-doc/references/oss_volume_creation.md +0 -39
  617. package/bin/skills/lakehouse-doc/references/partition_table.md +0 -344
  618. package/bin/skills/lakehouse-doc/references/partition_table_guide.md +0 -340
  619. package/bin/skills/lakehouse-doc/references/performance_optimization.md +0 -1
  620. package/bin/skills/lakehouse-doc/references/performence_test.md +0 -1
  621. package/bin/skills/lakehouse-doc/references/permissions-of-built-in-workspace-level-roles.md +0 -131
  622. package/bin/skills/lakehouse-doc/references/pipe-kafka-bestpractice-1.md +0 -431
  623. package/bin/skills/lakehouse-doc/references/pipe-kafka-table-stream.md +0 -180
  624. package/bin/skills/lakehouse-doc/references/pipe-kafka.md +0 -210
  625. package/bin/skills/lakehouse-doc/references/pipe-storage-object.md +0 -247
  626. package/bin/skills/lakehouse-doc/references/pipe-summary.md +0 -114
  627. package/bin/skills/lakehouse-doc/references/pipe-syntax.md +0 -200
  628. package/bin/skills/lakehouse-doc/references/practice_data_analysis.md +0 -1
  629. package/bin/skills/lakehouse-doc/references/practice_data_import_and_export.md +0 -1
  630. package/bin/skills/lakehouse-doc/references/practice_python_task.md +0 -157
  631. package/bin/skills/lakehouse-doc/references/pricing.md +0 -225
  632. package/bin/skills/lakehouse-doc/references/primary key.md +0 -86
  633. package/bin/skills/lakehouse-doc/references/primary-key.md +0 -187
  634. package/bin/skills/lakehouse-doc/references/privacy-policy.md +0 -364
  635. package/bin/skills/lakehouse-doc/references/private-link-general.md +0 -68
  636. package/bin/skills/lakehouse-doc/references/private_link.md +0 -1
  637. package/bin/skills/lakehouse-doc/references/product-trial-agreement.md +0 -99
  638. package/bin/skills/lakehouse-doc/references/product_concept.md +0 -1
  639. package/bin/skills/lakehouse-doc/references/put-get.md +0 -1
  640. package/bin/skills/lakehouse-doc/references/put_get_volume.md +0 -3
  641. package/bin/skills/lakehouse-doc/references/python-igs.md +0 -297
  642. package/bin/skills/lakehouse-doc/references/python_package_install_import_guide.md +0 -53
  643. package/bin/skills/lakehouse-doc/references/python_reference/connector.md +0 -281
  644. package/bin/skills/lakehouse-doc/references/python_reference/python-sdk-summary.md +0 -13
  645. package/bin/skills/lakehouse-doc/references/python_reference/sqlalchemy.md +0 -77
  646. package/bin/skills/lakehouse-doc/references/python_shell_datasource.md +0 -334
  647. package/bin/skills/lakehouse-doc/references/query-json-sy.md +0 -47
  648. package/bin/skills/lakehouse-doc/references/query-syntax.md +0 -234
  649. package/bin/skills/lakehouse-doc/references/quick_start_batch_sync_data.md +0 -116
  650. package/bin/skills/lakehouse-doc/references/quick_start_bi_analysis.md +0 -589
  651. package/bin/skills/lakehouse-doc/references/quick_start_create_workspace.md +0 -58
  652. package/bin/skills/lakehouse-doc/references/quick_start_data_quality.md +0 -75
  653. package/bin/skills/lakehouse-doc/references/quick_start_etl.md +0 -131
  654. package/bin/skills/lakehouse-doc/references/quick_start_monitoring_and_alerting.md +0 -93
  655. package/bin/skills/lakehouse-doc/references/quick_start_sql_query.md +0 -93
  656. package/bin/skills/lakehouse-doc/references/quick_start_upload_data.md +0 -69
  657. package/bin/skills/lakehouse-doc/references/quick_start_user_management.md +0 -73
  658. package/bin/skills/lakehouse-doc/references/quick_start_workspace.md +0 -72
  659. package/bin/skills/lakehouse-doc/references/quick_start_workspace_user.md +0 -67
  660. package/bin/skills/lakehouse-doc/references/quickstart_datashare_between_companies.md +0 -249
  661. package/bin/skills/lakehouse-doc/references/quickstart_envirment_for_team.md +0 -271
  662. package/bin/skills/lakehouse-doc/references/quickstart_local_csv.md +0 -99
  663. package/bin/skills/lakehouse-doc/references/realtime_sync.md +0 -36
  664. package/bin/skills/lakehouse-doc/references/realtime_sync_and_analysis_practice.md +0 -187
  665. package/bin/skills/lakehouse-doc/references/realtimesync_m.md +0 -190
  666. package/bin/skills/lakehouse-doc/references/refresh-history.md +0 -63
  667. package/bin/skills/lakehouse-doc/references/regexp-statement.md +0 -80
  668. package/bin/skills/lakehouse-doc/references/releasenotes.md +0 -1
  669. package/bin/skills/lakehouse-doc/references/releasenotesupdata.md +0 -1
  670. package/bin/skills/lakehouse-doc/references/remove-volume.md +0 -32
  671. package/bin/skills/lakehouse-doc/references/restore-dynamic-table.md +0 -126
  672. package/bin/skills/lakehouse-doc/references/restore.md +0 -127
  673. package/bin/skills/lakehouse-doc/references/result_cache.md +0 -102
  674. package/bin/skills/lakehouse-doc/references/revoke-from-share.md +0 -48
  675. package/bin/skills/lakehouse-doc/references/revoke-user-privileges.md +0 -91
  676. package/bin/skills/lakehouse-doc/references/right.md +0 -84
  677. package/bin/skills/lakehouse-doc/references/rlike.md +0 -78
  678. package/bin/skills/lakehouse-doc/references/rn_2024_11_12.md +0 -63
  679. package/bin/skills/lakehouse-doc/references/role-privlilige-manage.md +0 -1
  680. package/bin/skills/lakehouse-doc/references/roles.md +0 -123
  681. package/bin/skills/lakehouse-doc/references/rom_lakehouse_to_volume.md +0 -1
  682. package/bin/skills/lakehouse-doc/references/s3_volume_creation.md +0 -37
  683. package/bin/skills/lakehouse-doc/references/sample-data-using.md +0 -768
  684. package/bin/skills/lakehouse-doc/references/security_compliance_audit_guide.md +0 -1
  685. package/bin/skills/lakehouse-doc/references/security_overview.md +0 -41
  686. package/bin/skills/lakehouse-doc/references/select-catalog-table.md +0 -26
  687. package/bin/skills/lakehouse-doc/references/semantic_view.md +0 -711
  688. package/bin/skills/lakehouse-doc/references/setup.md +0 -33
  689. package/bin/skills/lakehouse-doc/references/share-ddl.md +0 -1
  690. package/bin/skills/lakehouse-doc/references/show-cached-status.md +0 -34
  691. package/bin/skills/lakehouse-doc/references/show-catalog-schema.md +0 -48
  692. package/bin/skills/lakehouse-doc/references/show-catalog-table.md +0 -22
  693. package/bin/skills/lakehouse-doc/references/show-catalog.md +0 -26
  694. package/bin/skills/lakehouse-doc/references/show-columns.md +0 -75
  695. package/bin/skills/lakehouse-doc/references/show-create-dynamic-table.md +0 -44
  696. package/bin/skills/lakehouse-doc/references/show-create-external-table.md +0 -45
  697. package/bin/skills/lakehouse-doc/references/show-create-materialized-view.md +0 -43
  698. package/bin/skills/lakehouse-doc/references/show-create-table.md +0 -107
  699. package/bin/skills/lakehouse-doc/references/show-dynamic-table.md +0 -68
  700. package/bin/skills/lakehouse-doc/references/show-external-schemas.md +0 -35
  701. package/bin/skills/lakehouse-doc/references/show-external-table.md +0 -38
  702. package/bin/skills/lakehouse-doc/references/show-finctions.md +0 -25
  703. package/bin/skills/lakehouse-doc/references/show-functions.md +0 -44
  704. package/bin/skills/lakehouse-doc/references/show-grants-user.md +0 -41
  705. package/bin/skills/lakehouse-doc/references/show-jobs.md +0 -48
  706. package/bin/skills/lakehouse-doc/references/show-materialized-view.md +0 -42
  707. package/bin/skills/lakehouse-doc/references/show-schemas.md +0 -41
  708. package/bin/skills/lakehouse-doc/references/show-shares.md +0 -94
  709. package/bin/skills/lakehouse-doc/references/show-synonyms.md +0 -29
  710. package/bin/skills/lakehouse-doc/references/show-table-streams.md +0 -53
  711. package/bin/skills/lakehouse-doc/references/show-tables-history.md +0 -91
  712. package/bin/skills/lakehouse-doc/references/show-tables.md +0 -50
  713. package/bin/skills/lakehouse-doc/references/show-users.md +0 -46
  714. package/bin/skills/lakehouse-doc/references/show-vclusters.md +0 -59
  715. package/bin/skills/lakehouse-doc/references/show-views.md +0 -31
  716. package/bin/skills/lakehouse-doc/references/show-volume.md +0 -57
  717. package/bin/skills/lakehouse-doc/references/show.md +0 -168
  718. package/bin/skills/lakehouse-doc/references/simpletosimple_bazhuayu_datagpt.md +0 -152
  719. package/bin/skills/lakehouse-doc/references/small_file_optimization.md +0 -101
  720. package/bin/skills/lakehouse-doc/references/spark-connector-summary.md +0 -329
  721. package/bin/skills/lakehouse-doc/references/spark-connector-use.md +0 -233
  722. package/bin/skills/lakehouse-doc/references/sql-parmaters.md +0 -594
  723. package/bin/skills/lakehouse-doc/references/sql-qualify.md +0 -236
  724. package/bin/skills/lakehouse-doc/references/sql-reference.md +0 -1
  725. package/bin/skills/lakehouse-doc/references/sql_data_transfom_NestedDataTypes.md +0 -451
  726. package/bin/skills/lakehouse-doc/references/sql_data_transform.md +0 -1
  727. package/bin/skills/lakehouse-doc/references/sql_data_transform_basic.md +0 -576
  728. package/bin/skills/lakehouse-doc/references/sql_data_transform_cte.md +0 -177
  729. package/bin/skills/lakehouse-doc/references/sql_data_transform_tips.md +0 -407
  730. package/bin/skills/lakehouse-doc/references/sql_data_transform_windows.md +0 -430
  731. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/any_value.md +0 -64
  732. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_count_distinct.md +0 -45
  733. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_histogram.md +0 -56
  734. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_percentile.md +0 -65
  735. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/approx_top_k.md +0 -62
  736. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/avg.md +0 -68
  737. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bit_and.md +0 -81
  738. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bit_or.md +0 -78
  739. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bit_xor.md +0 -79
  740. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bool_and.md +0 -85
  741. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/bool_or.md +0 -86
  742. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_list.md +0 -95
  743. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_list_on_array.md +0 -64
  744. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_set.md +0 -85
  745. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/collect_set_on_array.md +0 -80
  746. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/corr.md +0 -103
  747. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/count.md +0 -96
  748. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/count_distinct.md +0 -96
  749. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/count_if.md +0 -62
  750. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/covar_pop.md +0 -89
  751. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/covar_samp.md +0 -113
  752. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/first_value.md +0 -122
  753. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap.md +0 -42
  754. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_and.md +0 -46
  755. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_and_state.md +0 -47
  756. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_merge.md +0 -37
  757. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_merge_state.md +0 -29
  758. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_or.md +0 -44
  759. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_or_state.md +0 -64
  760. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_state.md +0 -27
  761. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_xor.md +0 -45
  762. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_bitmap_xor_state.md +0 -99
  763. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/group_concat.md +0 -53
  764. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/last_value.md +0 -100
  765. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/map_agg.md +0 -79
  766. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/max.md +0 -102
  767. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/max_by.md +0 -67
  768. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/median.md +0 -60
  769. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/min.md +0 -89
  770. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/min_by.md +0 -99
  771. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/percentile.md +0 -69
  772. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/percentile_approx.md +0 -33
  773. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/percentile_rank.md +0 -36
  774. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/std.md +0 -47
  775. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/stddev.md +0 -68
  776. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/stddev_pop.md +0 -67
  777. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/stddev_samp.md +0 -67
  778. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/sum.md +0 -67
  779. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/var_pop.md +0 -65
  780. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/var_samp.md +0 -65
  781. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/variance.md +0 -47
  782. package/bin/skills/lakehouse-doc/references/sql_functions/aggregate_functions/wm_concat.md +0 -79
  783. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_instance_id.md +0 -16
  784. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_schema.md +0 -29
  785. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_session_id.md +0 -30
  786. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_user.md +0 -29
  787. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_user_id.md +0 -21
  788. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_vcluster.md +0 -40
  789. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_workspace.md +0 -19
  790. package/bin/skills/lakehouse-doc/references/sql_functions/context_functions/current_workspace_id.md +0 -24
  791. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/binary_to_bitmap.md +0 -29
  792. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_and.md +0 -39
  793. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_and_cardinality.md +0 -48
  794. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_andnot.md +0 -61
  795. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_andnot_cardinality.md +0 -60
  796. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_build.md +0 -58
  797. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_cardinality.md +0 -43
  798. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_contains.md +0 -50
  799. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_count.md +0 -45
  800. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_empty.md +0 -52
  801. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_has_all.md +0 -49
  802. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_has_any.md +0 -65
  803. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_hash.md +0 -52
  804. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_max.md +0 -26
  805. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_min.md +0 -33
  806. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_or.md +0 -61
  807. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_or_cardinality.md +0 -27
  808. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_remove.md +0 -42
  809. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_subset_in_range.md +0 -60
  810. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_subset_limit.md +0 -36
  811. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_to_array.md +0 -24
  812. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_to_binary.md +0 -28
  813. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_to_string.md +0 -41
  814. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_transform.md +0 -42
  815. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_xor.md +0 -59
  816. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/bitmap_xor_cardinality.md +0 -30
  817. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/string_to_bitmap.md +0 -56
  818. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/sub_bitmap.md +0 -34
  819. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitmap_functions/to_bitmap.md +0 -78
  820. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitwise_functions/bit_count.md +0 -43
  821. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/bitwise_functions/bitnot.md +0 -34
  822. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/assert_true.md +0 -44
  823. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/between.md +0 -52
  824. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/case_when.md +0 -99
  825. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/coalesce.md +0 -51
  826. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/decode.md +0 -45
  827. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/if.md +0 -56
  828. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/in.md +0 -33
  829. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_false.md +0 -63
  830. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_not_null.md +0 -40
  831. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_null.md +0 -44
  832. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/is_true.md +0 -63
  833. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/multiif.md +0 -54
  834. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/nvl.md +0 -39
  835. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/conditional_functions/raise_error.md +0 -52
  836. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/add_days.md +0 -65
  837. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/add_months.md +0 -38
  838. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/add_years.md +0 -61
  839. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/adddate.md +0 -53
  840. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/convert_timezone.md +0 -46
  841. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/current_date.md +0 -56
  842. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/current_timestamp.md +0 -46
  843. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date.md +0 -42
  844. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_add.md +0 -35
  845. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_format.md +0 -48
  846. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_format_mysql.md +0 -58
  847. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_format_pg.md +0 -54
  848. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_sub.md +0 -58
  849. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/date_trunc.md +0 -61
  850. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dateadd.md +0 -60
  851. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/datediff.md +0 -50
  852. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/datetime_patterns.md +0 -61
  853. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/day.md +0 -53
  854. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofmonth.md +0 -36
  855. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofweek.md +0 -31
  856. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofweek_iso.md +0 -56
  857. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/dayofyear.md +0 -40
  858. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/days.md +0 -21
  859. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/extract.md +0 -49
  860. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/from_unixtime.md +0 -43
  861. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/from_utc_timestamp.md +0 -45
  862. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/hour.md +0 -49
  863. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/hours.md +0 -21
  864. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/last_day.md +0 -35
  865. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/localtimestamp.md +0 -19
  866. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/makde_date.md +0 -20
  867. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/make_date.md +0 -20
  868. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/make_dt_interval.md +0 -66
  869. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/make_ym_interval.md +0 -53
  870. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/minute.md +0 -49
  871. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/month.md +0 -39
  872. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/months.md +0 -21
  873. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/months_between.md +0 -18
  874. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/next_day.md +0 -16
  875. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/now.md +0 -53
  876. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/quarter.md +0 -52
  877. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/second.md +0 -34
  878. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/str_to_date_mysql.md +0 -42
  879. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/sub_days.md +0 -66
  880. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestamp_micros.md +0 -34
  881. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestamp_millis.md +0 -54
  882. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestamp_seconds.md +0 -62
  883. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestampadd.md +0 -59
  884. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/timestampdiff.md +0 -78
  885. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_date.md +0 -43
  886. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_start_of_interval.md +0 -25
  887. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_timestamp.md +0 -66
  888. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_timestamp_ntz.md +0 -52
  889. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_unix_timestamp.md +0 -59
  890. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_unix_timestamp_ms.md +0 -45
  891. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_unix_timestamp_us.md +0 -40
  892. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/to_utc_timestamp.md +0 -62
  893. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/toyyyymmdd.md +0 -69
  894. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/trunc.md +0 -38
  895. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/unix_timestamp.md +0 -96
  896. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/week.md +0 -31
  897. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/weekday.md +0 -51
  898. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/weekofyear.md +0 -29
  899. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/year.md +0 -46
  900. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/yearofweek.md +0 -64
  901. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/datetime_functions/years.md +0 -21
  902. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/geo_functions/st_geohash.md +0 -34
  903. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/geo_functions/st_latfromgeohash.md +0 -59
  904. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/geo_functions/st_longfromgeohash.md +0 -53
  905. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/bucket.md +0 -33
  906. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/general_hash.md +0 -49
  907. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/hash_combine.md +0 -37
  908. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/hash_combine_commutative.md +0 -54
  909. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/hash_functions/murmurhash.md +0 -36
  910. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/array_sort_by_key.md +0 -42
  911. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/element_at.md +0 -59
  912. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/exists.md +0 -48
  913. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/filter.md +0 -37
  914. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/forall.md +0 -68
  915. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/high_order_functions.md +0 -34
  916. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/map_filter.md +0 -25
  917. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/map_zip_with.md +0 -46
  918. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/transform.md +0 -48
  919. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/transform_keys.md +0 -48
  920. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/transform_values.md +0 -36
  921. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/high_order_functions/zip_with.md +0 -38
  922. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/get_ip_info.md +0 -199
  923. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv4_num_to_string.md +0 -29
  924. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv4_string_to_num.md +0 -34
  925. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv6_num_to_string.md +0 -35
  926. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/ipv6_string_to_num.md +0 -46
  927. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/ip_functions/is_ip_address_in_range.md +0 -42
  928. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/from_json.md +0 -86
  929. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/get_json_object.md +0 -83
  930. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_array.md +0 -30
  931. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_contains.md +0 -86
  932. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_extract.md +0 -64
  933. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_minify.md +0 -28
  934. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_normalize.md +0 -36
  935. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_object.md +0 -37
  936. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_parse.md +0 -59
  937. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_remove.md +0 -36
  938. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_type.md +0 -44
  939. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/json_valid.md +0 -46
  940. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/schema_of_json.md +0 -79
  941. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/json_functions/to_json.md +0 -68
  942. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/abs.md +0 -46
  943. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/acos.md +0 -30
  944. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/acosh.md +0 -39
  945. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/asin.md +0 -39
  946. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/asinh.md +0 -46
  947. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/atan.md +0 -27
  948. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/atan2.md +0 -43
  949. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/atanh.md +0 -24
  950. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/bround.md +0 -43
  951. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cbrt.md +0 -56
  952. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/ceil.md +0 -45
  953. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/ceilling.md +0 -47
  954. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cos.md +0 -41
  955. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cosh.md +0 -41
  956. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/cot.md +0 -49
  957. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/csc.md +0 -34
  958. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/degrees.md +0 -42
  959. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/div.md +0 -28
  960. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/e.md +0 -34
  961. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/exp.md +0 -32
  962. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/exp2.md +0 -36
  963. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/expm1.md +0 -54
  964. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/floor.md +0 -41
  965. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/greatest.md +0 -36
  966. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/hypot.md +0 -37
  967. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/isnan.md +0 -27
  968. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/least.md +0 -38
  969. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/ln.md +0 -57
  970. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log.md +0 -39
  971. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log10.md +0 -47
  972. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log1p.md +0 -48
  973. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/log2.md +0 -28
  974. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/median.md +0 -25
  975. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/mod.md +0 -35
  976. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/monotonically_increasing_id.md +0 -81
  977. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/negative.md +0 -15
  978. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/operators.md +0 -427
  979. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/pi.md +0 -41
  980. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/pmod.md +0 -31
  981. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/positive.md +0 -15
  982. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/pow.md +0 -39
  983. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/radians.md +0 -30
  984. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/rand.md +0 -39
  985. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/randn.md +0 -26
  986. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/random.md +0 -67
  987. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/round.md +0 -48
  988. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/shiftleft.md +0 -67
  989. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/shiftright.md +0 -70
  990. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/shiftrightunsigned.md +0 -70
  991. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sign.md +0 -46
  992. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sin.md +0 -67
  993. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sinh.md +0 -46
  994. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/sqrt.md +0 -40
  995. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/tan.md +0 -42
  996. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/math_functions/tanh.md +0 -38
  997. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array.md +0 -46
  998. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_append.md +0 -26
  999. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_compact.md +0 -29
  1000. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_contains.md +0 -38
  1001. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_distinct.md +0 -43
  1002. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_except.md +0 -35
  1003. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_intersect.md +0 -39
  1004. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_join.md +0 -51
  1005. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_max.md +0 -57
  1006. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_min.md +0 -60
  1007. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_position.md +0 -50
  1008. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_prepend.md +0 -26
  1009. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_remove.md +0 -34
  1010. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_repeat.md +0 -51
  1011. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_size.md +0 -32
  1012. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_sort.md +0 -46
  1013. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_sort_reverse.md +0 -31
  1014. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/array_union.md +0 -36
  1015. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/arrays_overlap.md +0 -41
  1016. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/arrays_zip.md +0 -50
  1017. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/cardinality.md +0 -45
  1018. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/concat.md +0 -49
  1019. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/concat_ws.md +0 -73
  1020. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/element_at.md +0 -34
  1021. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/flatten.md +0 -62
  1022. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map.md +0 -44
  1023. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_concat.md +0 -38
  1024. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_contains_key.md +0 -34
  1025. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_entries.md +0 -44
  1026. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_equal.md +0 -33
  1027. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_except.md +0 -34
  1028. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_from_arrays.md +0 -28
  1029. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_from_entries.md +0 -52
  1030. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_keys.md +0 -37
  1031. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/map_values.md +0 -46
  1032. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/multimap_from_entries.md +0 -47
  1033. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/named_struct.md +0 -55
  1034. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/sequence.md +0 -35
  1035. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/size.md +0 -34
  1036. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/slice.md +0 -43
  1037. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/sort_array.md +0 -22
  1038. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/struct.md +0 -35
  1039. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/struct_insert.md +0 -54
  1040. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/struct_update.md +0 -42
  1041. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/nested_functions/trans_array.md +0 -147
  1042. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/partition/max_pt.md +0 -41
  1043. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_all.md +0 -56
  1044. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_any.md +0 -50
  1045. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_phrase.md +0 -65
  1046. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_phrase_prefix.md +0 -36
  1047. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/match_regexp.md +0 -30
  1048. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/search_functions/tokenize.md +0 -57
  1049. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_decrypt.md +0 -40
  1050. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_decrypt_mysql.md +0 -30
  1051. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_encrypt.md +0 -34
  1052. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/aes_encrypt_mysql.md +0 -53
  1053. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/ascii.md +0 -36
  1054. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/base64.md +0 -27
  1055. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/binary.md +0 -46
  1056. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/btrim.md +0 -38
  1057. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/char.md +0 -55
  1058. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/char_length.md +0 -52
  1059. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/character_length.md +0 -52
  1060. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/chr.md +0 -26
  1061. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/collation_sort_key.md +0 -58
  1062. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/concat.md +0 -75
  1063. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/concat_ws.md +0 -72
  1064. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/contains.md +0 -31
  1065. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/conv.md +0 -50
  1066. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/endswith.md +0 -70
  1067. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/find_in_set.md +0 -19
  1068. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/format_string.md +0 -53
  1069. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/hex.md +0 -45
  1070. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/instr.md +0 -41
  1071. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/is_ascii.md +0 -27
  1072. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/is_utf8.md +0 -27
  1073. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lcase.md +0 -45
  1074. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/left.md +0 -35
  1075. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/length.md +0 -33
  1076. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lengthb.md +0 -49
  1077. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/like.md +0 -63
  1078. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/locate.md +0 -42
  1079. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lower.md +0 -61
  1080. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/lpad.md +0 -45
  1081. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/ltrim.md +0 -48
  1082. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/mask.md +0 -37
  1083. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/md5.md +0 -71
  1084. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/octet_length.md +0 -47
  1085. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/parse_url.md +0 -78
  1086. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/position.md +0 -35
  1087. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_count.md +0 -115
  1088. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_extract.md +0 -37
  1089. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_extract_all.md +0 -31
  1090. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_instr.md +0 -152
  1091. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/regexp_replace.md +0 -34
  1092. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/repeat.md +0 -44
  1093. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/replace.md +0 -37
  1094. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/reverse.md +0 -70
  1095. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/right.md +0 -34
  1096. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/rlike.md +0 -64
  1097. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/rpad.md +0 -53
  1098. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/rtrim.md +0 -37
  1099. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/sha1.md +0 -67
  1100. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/space.md +0 -34
  1101. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/split.md +0 -61
  1102. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/split_part.md +0 -42
  1103. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/startswith.md +0 -70
  1104. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/str_to_map.md +0 -60
  1105. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/strpos.md +0 -60
  1106. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/substr.md +0 -43
  1107. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/substring.md +0 -53
  1108. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/substring_index.md +0 -46
  1109. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/translate.md +0 -43
  1110. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/trim.md +0 -54
  1111. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/typeof.md +0 -54
  1112. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/ucase.md +0 -46
  1113. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/unbase64.md +0 -54
  1114. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/unhex.md +0 -46
  1115. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/upper.md +0 -51
  1116. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/url_decode.md +0 -32
  1117. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/url_encode.md +0 -33
  1118. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/string_functions/uuid.md +0 -33
  1119. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/binary_quantize.md +0 -51
  1120. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/cosine_distance.md +0 -53
  1121. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/dot_product.md +0 -54
  1122. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/hamming_distance.md +0 -57
  1123. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/jaccard_distance.md +0 -55
  1124. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/l2_distance.md +0 -53
  1125. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/l2_norm.md +0 -52
  1126. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/l2_normalize.md +0 -54
  1127. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/print_vector_bits.md +0 -56
  1128. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/vector.md +0 -70
  1129. package/bin/skills/lakehouse-doc/references/sql_functions/scalar_functions/vector_functions/vector_add_scalar.md +0 -57
  1130. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/explode.md +0 -71
  1131. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/inline.md +0 -48
  1132. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/json_tuple.md +0 -44
  1133. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/load_history.md +0 -17
  1134. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/posexplode.md +0 -89
  1135. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/read_kafka.md +0 -85
  1136. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/stack.md +0 -69
  1137. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/table_changes.md +0 -136
  1138. package/bin/skills/lakehouse-doc/references/sql_functions/table_functions/unnset.md +0 -106
  1139. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/avg.md +0 -91
  1140. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/count.md +0 -88
  1141. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/cume_dist.md +0 -104
  1142. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/dense_rank.md +0 -119
  1143. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/first.md +0 -159
  1144. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/first_value.md +0 -133
  1145. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/lag.md +0 -72
  1146. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/last.md +0 -166
  1147. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/last_value.md +0 -160
  1148. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/lead.md +0 -49
  1149. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/max.md +0 -167
  1150. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/min.md +0 -138
  1151. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/nth_value.md +0 -58
  1152. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/ntile.md +0 -57
  1153. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/percent_rank.md +0 -58
  1154. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/rank.md +0 -139
  1155. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/row_number.md +0 -141
  1156. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/sum.md +0 -105
  1157. package/bin/skills/lakehouse-doc/references/sql_functions/window_functions/window_clause.md +0 -91
  1158. package/bin/skills/lakehouse-doc/references/sql_practice.md +0 -1
  1159. package/bin/skills/lakehouse-doc/references/sql_rfm.md +0 -181
  1160. package/bin/skills/lakehouse-doc/references/sqlalchemy.md +0 -82
  1161. package/bin/skills/lakehouse-doc/references/ssb-benchmark.md +0 -224
  1162. package/bin/skills/lakehouse-doc/references/sso-configuration.md +0 -157
  1163. package/bin/skills/lakehouse-doc/references/storage_encryption.md +0 -81
  1164. package/bin/skills/lakehouse-doc/references/streaming_data_pipeline_overview.md +0 -20
  1165. package/bin/skills/lakehouse-doc/references/streaming_data_pipeline_overview1.md +0 -1
  1166. package/bin/skills/lakehouse-doc/references/streaming_pipeline_with_dynamic_table.md +0 -66
  1167. package/bin/skills/lakehouse-doc/references/structure_data_analysis.md +0 -229
  1168. package/bin/skills/lakehouse-doc/references/studio_manual.md +0 -1
  1169. package/bin/skills/lakehouse-doc/references/studio_overview.md +0 -71
  1170. package/bin/skills/lakehouse-doc/references/synonym.md +0 -139
  1171. package/bin/skills/lakehouse-doc/references/table-stream-title.md +0 -1
  1172. package/bin/skills/lakehouse-doc/references/table-stream.md +0 -1
  1173. package/bin/skills/lakehouse-doc/references/table-summary.md +0 -1
  1174. package/bin/skills/lakehouse-doc/references/table_funciotn.md +0 -1
  1175. package/bin/skills/lakehouse-doc/references/table_stream.md +0 -118
  1176. package/bin/skills/lakehouse-doc/references/tablesample.md +0 -474
  1177. package/bin/skills/lakehouse-doc/references/tablestream_summary.md +0 -515
  1178. package/bin/skills/lakehouse-doc/references/task-instance-maintenance.md +0 -207
  1179. package/bin/skills/lakehouse-doc/references/task_development.md +0 -56
  1180. package/bin/skills/lakehouse-doc/references/task_group.md +0 -151
  1181. package/bin/skills/lakehouse-doc/references/task_param.md +0 -978
  1182. package/bin/skills/lakehouse-doc/references/task_scheduling.md +0 -1
  1183. package/bin/skills/lakehouse-doc/references/task_scheduling_dependency.md +0 -74
  1184. package/bin/skills/lakehouse-doc/references/taskdevelop.md +0 -268
  1185. package/bin/skills/lakehouse-doc/references/tencentcloud_arn_and_externalid.md +0 -29
  1186. package/bin/skills/lakehouse-doc/references/time-function.md +0 -67
  1187. package/bin/skills/lakehouse-doc/references/timetravel-summary.md +0 -47
  1188. package/bin/skills/lakehouse-doc/references/tools_AI.md +0 -1
  1189. package/bin/skills/lakehouse-doc/references/tools_BI.md +0 -1
  1190. package/bin/skills/lakehouse-doc/references/tpcds-benchmark.md +0 -754
  1191. package/bin/skills/lakehouse-doc/references/tpch-benchmark.md +0 -887
  1192. package/bin/skills/lakehouse-doc/references/transformt-dt.md +0 -291
  1193. package/bin/skills/lakehouse-doc/references/trial-account-quotas-and-limits.md +0 -81
  1194. package/bin/skills/lakehouse-doc/references/tutorial_DataGPT.md +0 -1
  1195. package/bin/skills/lakehouse-doc/references/tutorial_connect_to_lakehouse.md +0 -1
  1196. package/bin/skills/lakehouse-doc/references/tutorial_data_transformation.md +0 -1
  1197. package/bin/skills/lakehouse-doc/references/tutorial_migration.md +0 -1
  1198. package/bin/skills/lakehouse-doc/references/tutorial_virtual_cluster.md +0 -1
  1199. package/bin/skills/lakehouse-doc/references/tutorial_work_with_workspace.md +0 -1
  1200. package/bin/skills/lakehouse-doc/references/tutorial_zettapark.md +0 -1
  1201. package/bin/skills/lakehouse-doc/references/tutorials-streaming-data-pipeline-with_dynamic-table.md +0 -124
  1202. package/bin/skills/lakehouse-doc/references/undrop-dynamic-table.md +0 -79
  1203. package/bin/skills/lakehouse-doc/references/undrop-materialized-view.md +0 -80
  1204. package/bin/skills/lakehouse-doc/references/unifiedWorkflow.md +0 -1
  1205. package/bin/skills/lakehouse-doc/references/unloa-data-summary.md +0 -17
  1206. package/bin/skills/lakehouse-doc/references/unload-data-local.md +0 -72
  1207. package/bin/skills/lakehouse-doc/references/unstructure_data_analysis.md +0 -1
  1208. package/bin/skills/lakehouse-doc/references/unstructured_etl_pipeline_notebook.md +0 -12
  1209. package/bin/skills/lakehouse-doc/references/unstructured_etl_pipeline_user_guide.md +0 -949
  1210. package/bin/skills/lakehouse-doc/references/unstructured_etl_python_api.md +0 -896
  1211. package/bin/skills/lakehouse-doc/references/upload-data.md +0 -1
  1212. package/bin/skills/lakehouse-doc/references/upload_data.md +0 -123
  1213. package/bin/skills/lakehouse-doc/references/use-dbt-dev.md +0 -441
  1214. package/bin/skills/lakehouse-doc/references/use-external-schema.md +0 -42
  1215. package/bin/skills/lakehouse-doc/references/use-java-sdk-releatime-uploaddata.md +0 -168
  1216. package/bin/skills/lakehouse-doc/references/use-java-sdk-upload-dta-local.md +0 -140
  1217. package/bin/skills/lakehouse-doc/references/use-mysql-client.md +0 -189
  1218. package/bin/skills/lakehouse-doc/references/use-python-sdk-upload-data.md +0 -99
  1219. package/bin/skills/lakehouse-doc/references/use-schema.md +0 -49
  1220. package/bin/skills/lakehouse-doc/references/use-vcluster.md +0 -38
  1221. package/bin/skills/lakehouse-doc/references/user-aggrement.md +0 -229
  1222. package/bin/skills/lakehouse-doc/references/user-external-funciton.md +0 -1
  1223. package/bin/skills/lakehouse-doc/references/user-identification.md +0 -58
  1224. package/bin/skills/lakehouse-doc/references/user_permission_grand_guide.md +0 -322
  1225. package/bin/skills/lakehouse-doc/references/using-google-authenticator.md +0 -48
  1226. package/bin/skills/lakehouse-doc/references/using-udf-in-dynamic-table.md +0 -162
  1227. package/bin/skills/lakehouse-doc/references/using_mcp_solute_data_pipeline_issue.md +0 -343
  1228. package/bin/skills/lakehouse-doc/references/uuid.md +0 -47
  1229. package/bin/skills/lakehouse-doc/references/validate_schema_evolution.md +0 -167
  1230. package/bin/skills/lakehouse-doc/references/vc-job.md +0 -1
  1231. package/bin/skills/lakehouse-doc/references/vc_cache.md +0 -71
  1232. package/bin/skills/lakehouse-doc/references/vcluster_size_description.md +0 -98
  1233. package/bin/skills/lakehouse-doc/references/vector-search.md +0 -144
  1234. package/bin/skills/lakehouse-doc/references/vector-type.md +0 -52
  1235. package/bin/skills/lakehouse-doc/references/vector_data_process_guide.md +0 -952
  1236. package/bin/skills/lakehouse-doc/references/vector_search_ai.md +0 -423
  1237. package/bin/skills/lakehouse-doc/references/version-update.md +0 -21
  1238. package/bin/skills/lakehouse-doc/references/virtual-cluster.md +0 -221
  1239. package/bin/skills/lakehouse-doc/references/volume_best_practices.md +0 -1141
  1240. package/bin/skills/lakehouse-doc/references/web-job-history.md +0 -163
  1241. package/bin/skills/lakehouse-doc/references/what_is_clickzetta_lakehouse.md +0 -92
  1242. package/bin/skills/lakehouse-doc/references/window-function-summary.md +0 -134
  1243. package/bin/skills/lakehouse-doc/references/windowframe.md +0 -139
  1244. package/bin/skills/lakehouse-doc/references/working_with_Vclusters.md +0 -171
  1245. package/bin/skills/lakehouse-doc/references/working_with_cache.md +0 -102
  1246. package/bin/skills/lakehouse-doc/references/worksapce-informaiton_schema-views.md +0 -207
  1247. package/bin/skills/lakehouse-doc/references/worksheet.md +0 -15
  1248. package/bin/skills/lakehouse-doc/references/workspace-introduction.md +0 -41
  1249. package/bin/skills/lakehouse-doc/references/worskapce-infroamtionschema-summary.md +0 -56
@@ -1,1260 +0,0 @@
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
- ^