Skip to content

Commit 58f49d6

Browse files
committed
fix issues
1 parent e9cc64c commit 58f49d6

File tree

2 files changed

+1
-55
lines changed

2 files changed

+1
-55
lines changed

i18n/jp/docusaurus-plugin-content-docs/current/cloud/guides/SQL_console/query-endpoints.md

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -549,61 +549,9 @@ SELECT * FROM system.tables;
549549
SELECT name, database FROM system.tables;
550550
```
551551

552-
<Tabs>
553-
<TabItem value="TypeScript" label="TypeScript" default>
554-
555-
```typescript
556-
async function fetchAndLogChunks(
557-
url: string,
558-
openApiKeyId: string,
559-
openApiKeySecret: string
560-
) {
561-
const auth = Buffer.from(`${openApiKeyId}:${openApiKeySecret}`).toString(
562-
"base64"
563-
);
564-
565-
const headers = {
566-
Authorization: `Basic ${auth}`,
567-
"x-clickhouse-endpoint-version": "2",
568-
};
569-
570-
const response = await fetch(url, {
571-
headers,
572-
method: "POST",
573-
body: JSON.stringify({ format: "JSONEachRow" }),
574-
});
575-
576-
if (!response.ok) {
577-
console.error(`HTTP error! Status: ${response.status}`);
578-
return;
579-
}
580-
581-
const reader = response.body as unknown as Readable;
582-
reader.on("data", (chunk) => {
583-
console.log(chunk.toString());
584-
});
585-
586-
reader.on("end", () => {
587-
console.log("Stream ended.");
588-
});
589-
590-
reader.on("error", (err) => {
591-
console.error("Stream error:", err);
592-
});
593-
}
594-
595-
const endpointUrl =
596-
"https://console-api.clickhouse.cloud/.api/query-endpoints/<endpoint id>/run?format=JSONEachRow";
597-
const openApiKeyId = "<myOpenApiKeyId>";
598-
const openApiKeySecret = "<myOpenApiKeySecret>";
599-
// 使用例
600-
fetchAndLogChunks(endpointUrl, openApiKeyId, openApiKeySecret).catch((err) =>
601-
console.error(err)
602-
);
603-
```
604-
605552
<Tabs>
606553
<TabItem value="TypeScript" label="TypeScript" default>
554+
607555
```typescript
608556
async function fetchAndLogChunks(
609557
url: string,

i18n/jp/docusaurus-plugin-content-docs/current/engines/table-engines/mergetree-family/replacingmergetree.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ SELECT * FROM mySecondReplacingMT FINAL;
8686
└─────┴─────────┴───────── ────────────┘
8787
```
8888

89-
`is_deleted` {#is_deleted}
90-
9189
`is_deleted` — マージ時に、この行のデータが状態を表すか削除対象かを判断するために使用される列の名前。`1`は「削除済み」行、`0`は「状態」行を示す。
9290

9391
列のデータ型 — `UInt8`

0 commit comments

Comments
 (0)