Skip to content

Commit 83900c9

Browse files
authored
fix: typo (#2923)
1 parent 63fc320 commit 83900c9

File tree

4 files changed

+39
-36
lines changed

4 files changed

+39
-36
lines changed

docs/cn/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ copyOptions ::=
129129
[ USE_RAW_PATH = true | false ]
130130
```
131131

132-
| 参数 | 默认值 | 描述 |
133-
|------------------|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
134-
| SINGLE | false | 如果为 `true`,则命令将数据卸载到单个文件中。 |
135-
| MAX_FILE_SIZE | 67108864 bytes (64 MB) | 要创建的每个文件的最大大小(以字节为单位)。当 `SINGLE` 为 false 时生效。 |
136-
| OVERWRITE | false | 如果为 `true`,则目标路径下具有相同名称的现有文件将被覆盖。注意:`OVERWRITE = true` 需要 `USE_RAW_PATH = true``INCLUDE_QUERY_ID = false` |
137-
| INCLUDE_QUERY_ID | true | 如果为 `true`,则导出的文件名中将包含唯一的 UUID。 |
138-
| USE_RAW_PATH | false | 如果为 `true`,则将使用用户提供的确切路径(包括完整的文件名)来导出数据。如果设置为 `false`,则用户必须提供目录路径。 |
132+
| 参数 | 默认值 | 描述 |
133+
| ---------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
134+
| SINGLE | false | 如果为 `true`,则命令将数据卸载到单个文件中。 |
135+
| MAX_FILE_SIZE | 67108864 bytes (64 MB) | 要创建的每个文件的最大大小(以字节为单位)。当 `SINGLE` 为 false 时生效。 |
136+
| OVERWRITE | false | 如果为 `true`,则目标路径下具有相同名称的现有文件将被覆盖。注意:`OVERWRITE = true` 需要 `USE_RAW_PATH = true``INCLUDE_QUERY_ID = false`|
137+
| INCLUDE_QUERY_ID | true | 如果为 `true`,则导出的文件名中将包含唯一的 UUID。 |
138+
| USE_RAW_PATH | false | 如果为 `true`,则将使用用户提供的确切路径(包括完整的文件名)来导出数据。如果设置为 `false`,则用户必须提供目录路径。 |
139139

140140
### DETAILED_OUTPUT
141141

@@ -145,19 +145,19 @@ copyOptions ::=
145145

146146
COPY INTO 提供了数据卸载结果的摘要,包含以下列:
147147

148-
|| 描述 |
149-
| ------------- | --------------------------------------------------------------------------------------------- |
150-
| rows_unloaded | 成功卸载到目标位置的行数。 |
151-
| input_bytes | 在卸载操作期间从源表读取的数据的总大小(以字节为单位)。 |
152-
| output_bytes | 写入到目标位置的数据的总大小(以字节为单位)。 |
148+
|| 描述 |
149+
| ------------- | -------------------------------------------------------- |
150+
| rows_unloaded | 成功卸载到目标位置的行数。 |
151+
| input_bytes | 在卸载操作期间从源表读取的数据的总大小(以字节为单位)。 |
152+
| output_bytes | 写入到目标位置的数据的总大小(以字节为单位)。 |
153153

154154
`DETAILED_OUTPUT` 设置为 `true` 时,COPY INTO 提供包含以下列的结果。这有助于定位卸载的文件,尤其是在使用 `MAX_FILE_SIZE` 将卸载的数据分隔到多个文件中时。
155155

156-
|| 描述 |
157-
| --------- | --------------------------------------------- |
158-
| file_name | 卸载的文件名。 |
159-
| file_size | 卸载的文件的大小(以字节为单位)。 |
160-
| row_count | 卸载的文件中包含的行数。 |
156+
|| 描述 |
157+
| --------- | ---------------------------------- |
158+
| file_name | 卸载的文件名。 |
159+
| file_size | 卸载的文件的大小(以字节为单位)。 |
160+
| row_count | 卸载的文件中包含的行数。 |
161161

162162
## 示例
163163

@@ -241,10 +241,10 @@ LIST @my_internal_stage;
241241
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
242242

243243
-- COPY INTO 也适用于自定义文件格式。请参见下文:
244-
-- 创建一个名为 my_cs_gzip 的自定义文件格式,该格式采用 CSV 格式和 gzip 压缩
244+
-- 创建一个名为 my_csv_gzip 的自定义文件格式,该格式采用 CSV 格式和 gzip 压缩
245245
CREATE FILE FORMAT my_csv_gzip TYPE = CSV COMPRESSION = gzip;
246246

247-
-- 使用自定义文件格式 my_cs_gzip 将表中的数据卸载到 Stage
247+
-- 使用自定义文件格式 my_csv_gzip 将表中的数据卸载到 Stage
248248
COPY INTO @my_internal_stage
249249
FROM canadian_city_population
250250
FILE_FORMAT = (FORMAT_NAME = 'my_csv_gzip');
@@ -257,14 +257,14 @@ COPY INTO @my_internal_stage
257257

258258
LIST @my_internal_stage;
259259

260-
261-
```
262260
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
263261
│ name │ size │ md5 │ last_modified │ creator │
264262
├────────────────────────────────────────────────────────────────┼────────┼──────────────────┼───────────────────────────────┼──────────────────┤
265263
│ data_d006ba1c-0609-46d7-a67b-75c7078d86ff_0000_00000000.csv.gz │ 168NULL2024-01-18 16:29:29.721 +0000NULL
266264
│ data_7970afa5-32e3-4e7d-b793-e42a2a82a8e6_0000_00000000.csv.gz │ 168NULL2024-01-18 16:27:01.663 +0000NULL
267265
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
266+
267+
268268
```
269269

270270
### 示例 3:卸载到 Bucket

docs/en/sql-reference/10-sql-commands/10-dml/dml-copy-into-location.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ copyOptions ::=
129129
[ USE_RAW_PATH = true | false ]
130130
```
131131

132-
| Parameter | Default | Description |
133-
|------------------|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
134-
| SINGLE | false | When `true`, the command unloads data into one single file. |
135-
| MAX_FILE_SIZE | 67108864 bytes (64 MB) | The maximum size (in bytes) of each file to be created. Effective when `SINGLE` is false. |
136-
| 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`. |
137-
| INCLUDE_QUERY_ID | true | When `true`, a unique UUID will be included in the exported file names. |
138-
| 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. |
132+
| Parameter | Default | Description |
133+
| ---------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
134+
| SINGLE | false | When `true`, the command unloads data into one single file. |
135+
| MAX_FILE_SIZE | 67108864 bytes (64 MB) | The maximum size (in bytes) of each file to be created. Effective when `SINGLE` is false. |
136+
| 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`. |
137+
| INCLUDE_QUERY_ID | true | When `true`, a unique UUID will be included in the exported file names. |
138+
| 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. |
139139

140140
### DETAILED_OUTPUT
141141

@@ -241,10 +241,10 @@ LIST @my_internal_stage;
241241
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
242242

243243
-- COPY INTO also works with custom file formats. See below:
244-
-- Create a custom file format named my_cs_gzip with CSV format and gzip compression
244+
-- Create a custom file format named my_csv_gzip with CSV format and gzip compression
245245
CREATE FILE FORMAT my_csv_gzip TYPE = CSV COMPRESSION = gzip;
246246

247-
-- Unload data from the table to the stage using the custom file format my_cs_gzip
247+
-- Unload data from the table to the stage using the custom file format my_csv_gzip
248248
COPY INTO @my_internal_stage
249249
FROM canadian_city_population
250250
FILE_FORMAT = (FORMAT_NAME = 'my_csv_gzip');

src/components/Config/CookieConsentConfig.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ const pluginConfig: CookieConsentConfig = {
1919
},
2020
},
2121
onFirstConsent: function () {
22-
console.log('onFirstAction fired');
22+
// console.log('onFirstAction fired');
2323
},
2424

2525
onConsent: function ({ cookie }) {
26-
console.log('onConsent fired ...');
26+
// console.log('onConsent fired ...');
2727
},
2828

2929
onChange: function ({ changedCategories, cookie }) {
30-
console.log('onChange fired ...');
30+
// console.log('onChange fired ...');
3131
},
3232
onModalReady: ({ modalName, modal }) => {
33-
console.log('onModalReady fired ...', modalName, modal);
33+
// console.log('onModalReady fired ...', modalName, modal);
3434
},
3535

3636
categories: {

src/components/LanguageDocs/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright 2023 DatabendLabs.
22
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
3+
import MDXA from "@site/src/theme/MDXComponents/A";
34
import React, { FC } from "react";
45
import ReactMarkdown from "react-markdown";
56
import remarkGfm from "remark-gfm";
@@ -13,9 +14,11 @@ const LanguageDocs: FC<IProps> = ({ cn = "", en = "" }): any => {
1314
customFields: { isChina },
1415
},
1516
} = useDocusaurusContext() as any;
16-
17+
const components = {
18+
a: MDXA,
19+
};
1720
return (
18-
<ReactMarkdown remarkPlugins={[remarkGfm]}>
21+
<ReactMarkdown remarkPlugins={[remarkGfm]} components={components}>
1922
{isChina ? cn : en}
2023
</ReactMarkdown>
2124
);

0 commit comments

Comments
 (0)