ClickHouse/docs/ja/sql-reference/functions/array-join.md
Ivan Blinkov cd14f9ebcb
SQL reference refactoring (#10857)
* split up select.md

* array-join.md basic refactoring

* distinct.md basic refactoring

* format.md basic refactoring

* from.md basic refactoring

* group-by.md basic refactoring

* having.md basic refactoring

* additional index.md refactoring

* into-outfile.md basic refactoring

* join.md basic refactoring

* limit.md basic refactoring

* limit-by.md basic refactoring

* order-by.md basic refactoring

* prewhere.md basic refactoring

* adjust operators/index.md links

* adjust sample.md links

* adjust more links

* adjust operatots links

* fix some links

* adjust aggregate function article titles

* basic refactor of remaining select clauses

* absolute paths in make_links.sh

* run make_links.sh

* remove old select.md locations

* translate docs/es

* translate docs/fr

* translate docs/fa

* remove old operators.md location

* change operators.md links

* adjust links in docs/es

* adjust links in docs/es

* minor texts adjustments

* wip

* update machine translations to use new links

* fix changelog

* es build fixes

* get rid of some select.md links

* temporary adjust ru links

* temporary adjust more ru links

* improve curly brace handling

* adjust ru as well

* fa build fix

* ru link fixes

* zh link fixes

* temporary disable part of anchor checks
2020-05-15 07:34:54 +03:00

38 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
machine_translated: true
machine_translated_rev: 72537a2d527c63c07aa5d2361a8829f3895cf2bd
toc_priority: 61
toc_title: "\u30A2\u30EC\u30A4\u30B8\u30E7\u30A4\u30F3"
---
# arrayJoin関数 {#functions_arrayjoin}
これは非常に珍しい機能です。
通常の関数は行のセットを変更するのではなく、各行mapの値を変更するだけです。
集計関数は、行のセットを圧縮しますfoldまたはreduce
その arrayJoin 関数は、各行を取り、行のセットを生成します(展開)。
この関数は、配列を引数として受け取り、配列内の要素数に対してソース行を複数の行に伝播します。
この関数が適用される列の値を除いて、列内のすべての値は単純にコピーされます。
クエリでは、複数の `arrayJoin` 機能。 この場合、変換は複数回実行されます。
SELECTクエリの配列結合構文に注意してください。
例:
``` sql
SELECT arrayJoin([1, 2, 3] AS src) AS dst, 'Hello', src
```
``` text
┌─dst─┬─\'Hello\'─┬─src─────┐
│ 1 │ Hello │ [1,2,3] │
│ 2 │ Hello │ [1,2,3] │
│ 3 │ Hello │ [1,2,3] │
└─────┴───────────┴─────────┘
```
[元の記事](https://clickhouse.tech/docs/en/query_language/functions/array_join/) <!--hide-->