From 8790722ff2f7fa852eae166c30692db7d6a70d59 Mon Sep 17 00:00:00 2001 From: q <787025321@qq.com> Date: Fri, 31 Oct 2025 09:59:36 +0800 Subject: [PATCH 1/2] fix: typo --- .../10-dml/dml-copy-into-location.md | 42 +++++++++---------- .../10-dml/dml-copy-into-location.md | 18 ++++---- src/components/Config/CookieConsentConfig.ts | 8 ++-- src/components/LanguageDocs/index.tsx | 7 +++- 4 files changed, 39 insertions(+), 36 deletions(-) diff --git a/docs/cn/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md b/docs/cn/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md index fb807c9836..31cfc4d3c2 100644 --- a/docs/cn/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md +++ b/docs/cn/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md @@ -129,13 +129,13 @@ copyOptions ::= [ USE_RAW_PATH = true | false ] ``` -| 参数 | 默认值 | 描述 | -|------------------|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| SINGLE | false | 如果为 `true`,则命令将数据卸载到单个文件中。 | -| MAX_FILE_SIZE | 67108864 bytes (64 MB) | 要创建的每个文件的最大大小(以字节为单位)。当 `SINGLE` 为 false 时生效。 | -| OVERWRITE | false | 如果为 `true`,则目标路径下具有相同名称的现有文件将被覆盖。注意:`OVERWRITE = true` 需要 `USE_RAW_PATH = true` 和 `INCLUDE_QUERY_ID = false`。 | -| INCLUDE_QUERY_ID | true | 如果为 `true`,则导出的文件名中将包含唯一的 UUID。 | -| USE_RAW_PATH | false | 如果为 `true`,则将使用用户提供的确切路径(包括完整的文件名)来导出数据。如果设置为 `false`,则用户必须提供目录路径。 | +| 参数 | 默认值 | 描述 | +| ---------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| SINGLE | false | 如果为 `true`,则命令将数据卸载到单个文件中。 | +| MAX_FILE_SIZE | 67108864 bytes (64 MB) | 要创建的每个文件的最大大小(以字节为单位)。当 `SINGLE` 为 false 时生效。 | +| OVERWRITE | false | 如果为 `true`,则目标路径下具有相同名称的现有文件将被覆盖。注意:`OVERWRITE = true` 需要 `USE_RAW_PATH = true` 和 `INCLUDE_QUERY_ID = false`。 | +| INCLUDE_QUERY_ID | true | 如果为 `true`,则导出的文件名中将包含唯一的 UUID。 | +| USE_RAW_PATH | false | 如果为 `true`,则将使用用户提供的确切路径(包括完整的文件名)来导出数据。如果设置为 `false`,则用户必须提供目录路径。 | ### DETAILED_OUTPUT @@ -145,19 +145,19 @@ copyOptions ::= COPY INTO 提供了数据卸载结果的摘要,包含以下列: -| 列 | 描述 | -| ------------- | --------------------------------------------------------------------------------------------- | -| rows_unloaded | 成功卸载到目标位置的行数。 | -| input_bytes | 在卸载操作期间从源表读取的数据的总大小(以字节为单位)。 | -| output_bytes | 写入到目标位置的数据的总大小(以字节为单位)。 | +| 列 | 描述 | +| ------------- | -------------------------------------------------------- | +| rows_unloaded | 成功卸载到目标位置的行数。 | +| input_bytes | 在卸载操作期间从源表读取的数据的总大小(以字节为单位)。 | +| output_bytes | 写入到目标位置的数据的总大小(以字节为单位)。 | 当 `DETAILED_OUTPUT` 设置为 `true` 时,COPY INTO 提供包含以下列的结果。这有助于定位卸载的文件,尤其是在使用 `MAX_FILE_SIZE` 将卸载的数据分隔到多个文件中时。 -| 列 | 描述 | -| --------- | --------------------------------------------- | -| file_name | 卸载的文件名。 | -| file_size | 卸载的文件的大小(以字节为单位)。 | -| row_count | 卸载的文件中包含的行数。 | +| 列 | 描述 | +| --------- | ---------------------------------- | +| file_name | 卸载的文件名。 | +| file_size | 卸载的文件的大小(以字节为单位)。 | +| row_count | 卸载的文件中包含的行数。 | ## 示例 @@ -241,10 +241,10 @@ LIST @my_internal_stage; └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -- COPY INTO 也适用于自定义文件格式。请参见下文: --- 创建一个名为 my_cs_gzip 的自定义文件格式,该格式采用 CSV 格式和 gzip 压缩 +-- 创建一个名为 my_csv_gzip 的自定义文件格式,该格式采用 CSV 格式和 gzip 压缩 CREATE FILE FORMAT my_csv_gzip TYPE = CSV COMPRESSION = gzip; --- 使用自定义文件格式 my_cs_gzip 将表中的数据卸载到 Stage +-- 使用自定义文件格式 my_csv_gzip 将表中的数据卸载到 Stage COPY INTO @my_internal_stage FROM canadian_city_population FILE_FORMAT = (FORMAT_NAME = 'my_csv_gzip'); @@ -257,14 +257,14 @@ COPY INTO @my_internal_stage LIST @my_internal_stage; - -``` ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ name │ size │ md5 │ last_modified │ creator │ ├────────────────────────────────────────────────────────────────┼────────┼──────────────────┼───────────────────────────────┼──────────────────┤ │ data_d006ba1c-0609-46d7-a67b-75c7078d86ff_0000_00000000.csv.gz │ 168 │ NULL │ 2024-01-18 16:29:29.721 +0000 │ NULL │ │ data_7970afa5-32e3-4e7d-b793-e42a2a82a8e6_0000_00000000.csv.gz │ 168 │ NULL │ 2024-01-18 16:27:01.663 +0000 │ NULL │ └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + + ``` ### 示例 3:卸载到 Bucket diff --git a/docs/en/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md b/docs/en/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md index 78794790e1..a81056d4aa 100644 --- a/docs/en/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md +++ b/docs/en/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md @@ -129,13 +129,13 @@ copyOptions ::= [ USE_RAW_PATH = true | false ] ``` -| Parameter | Default | Description | -|------------------|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| SINGLE | false | When `true`, the command unloads data into one single file. | -| MAX_FILE_SIZE | 67108864 bytes (64 MB) | The maximum size (in bytes) of each file to be created. Effective when `SINGLE` is false. | -| OVERWRITE | false | When `true`, existing files with the same name at the target path will be overwritten. Note: `OVERWRITE = true` requires `USE_RAW_PATH = true` and `INCLUDE_QUERY_ID = false`. | -| INCLUDE_QUERY_ID | true | When `true`, a unique UUID will be included in the exported file names. | -| USE_RAW_PATH | false | When `true`, the exact user-provided path (including the full file name) will be used for exporting the data. If set to `false`, the user must provide a directory path. | +| Parameter | Default | Description | +| ---------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| SINGLE | false | When `true`, the command unloads data into one single file. | +| MAX_FILE_SIZE | 67108864 bytes (64 MB) | The maximum size (in bytes) of each file to be created. Effective when `SINGLE` is false. | +| OVERWRITE | false | When `true`, existing files with the same name at the target path will be overwritten. Note: `OVERWRITE = true` requires `USE_RAW_PATH = true` and `INCLUDE_QUERY_ID = false`. | +| INCLUDE_QUERY_ID | true | When `true`, a unique UUID will be included in the exported file names. | +| USE_RAW_PATH | false | When `true`, the exact user-provided path (including the full file name) will be used for exporting the data. If set to `false`, the user must provide a directory path. | ### DETAILED_OUTPUT @@ -241,10 +241,10 @@ LIST @my_internal_stage; └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -- COPY INTO also works with custom file formats. See below: --- Create a custom file format named my_cs_gzip with CSV format and gzip compression +-- Create a custom file format named my_csv_gzip with CSV format and gzip compression CREATE FILE FORMAT my_csv_gzip TYPE = CSV COMPRESSION = gzip; --- Unload data from the table to the stage using the custom file format my_cs_gzip +-- Unload data from the table to the stage using the custom file format my_csv_gzip COPY INTO @my_internal_stage FROM canadian_city_population FILE_FORMAT = (FORMAT_NAME = 'my_csv_gzip'); diff --git a/src/components/Config/CookieConsentConfig.ts b/src/components/Config/CookieConsentConfig.ts index 8642a44d1c..593d50737e 100644 --- a/src/components/Config/CookieConsentConfig.ts +++ b/src/components/Config/CookieConsentConfig.ts @@ -19,18 +19,18 @@ const pluginConfig: CookieConsentConfig = { }, }, onFirstConsent: function () { - console.log('onFirstAction fired'); + // console.log('onFirstAction fired'); }, onConsent: function ({ cookie }) { - console.log('onConsent fired ...'); + // console.log('onConsent fired ...'); }, onChange: function ({ changedCategories, cookie }) { - console.log('onChange fired ...'); + // console.log('onChange fired ...'); }, onModalReady: ({ modalName, modal }) => { - console.log('onModalReady fired ...', modalName, modal); + // console.log('onModalReady fired ...', modalName, modal); }, categories: { diff --git a/src/components/LanguageDocs/index.tsx b/src/components/LanguageDocs/index.tsx index 32b1467bbb..a278e1576e 100644 --- a/src/components/LanguageDocs/index.tsx +++ b/src/components/LanguageDocs/index.tsx @@ -1,5 +1,6 @@ // Copyright 2023 DatabendLabs. import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; +import MDXA from "@site/src/theme/MDXComponents/A"; import React, { FC } from "react"; import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; @@ -13,9 +14,11 @@ const LanguageDocs: FC = ({ cn = "", en = "" }): any => { customFields: { isChina }, }, } = useDocusaurusContext() as any; - + const components = { + a: MDXA, + }; return ( - + {isChina ? cn : en} ); From 6ea04c74cf928903e02dc965fbaa81c5b1e18589 Mon Sep 17 00:00:00 2001 From: q <787025321@qq.com> Date: Fri, 31 Oct 2025 10:18:05 +0800 Subject: [PATCH 2/2] adjust comment --- src/theme/DocPaginator/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/theme/DocPaginator/index.tsx b/src/theme/DocPaginator/index.tsx index c9a1c1c0b9..f80b70bb84 100644 --- a/src/theme/DocPaginator/index.tsx +++ b/src/theme/DocPaginator/index.tsx @@ -108,9 +108,9 @@ export default function DocPaginator(props) { path: window?.location?.pathname, action: type, comment: isChina - ? `我的建议是:${values?.commentValue}。领取人信息:${ - values?.name || "未设置" - }, ${values?.contact || "未设置"}` + ? `${values?.commentValue}。领取人信息:姓名=>${ + values?.name || "名称未设置" + }, 联系方式=>${values?.contact || "联系方式未设置"}` : values?.commentValue, }); setIsVoted(true);