注: 以下の翻訳の正確性は検証されていません。AIPを利用して英語版の原文から機械的に翻訳されたものです。
対応している: バッチ、ストリーミング
配列の直積を計算します。 式のカテゴリー: 配列
出力タイプ: Array<Struct>
例 1 - 基本ケース
引数の値:
first
, second
]first | second | :arrow_right: | 出力 |
---|---|---|---|
[ [ { s1: 1, }, { s1: 2, } ], [ { s1: 3, } ] ] | [ [ { s2: 4, }, { s2: 5, } ], [ { s2: 6, } ] ] | [ { first: [ { s1: 1, }, { s1: 2, } ], second: [ { s2: 4, }, { s2: 5, } ], }, { first: [ { s1: 1, }, { s1: 2, } ], second: [ { s2: 6, } ], }, { first: [ { s1: 3, } ], second: [ { s2: 4, }, { s2: 5, } ], }, { first: [ { s1: 3, } ], second: [ { s2: 6, } ], } ] |
例 2 - 基本ケース
引数の値:
first
, second
]first | second | :arrow_right: | 出力 |
---|---|---|---|
[ 1, 2 ] | [ 3, 4 ] | [ { first: 1, second: 3, }, { first: 1, second: 4, }, { first: 2, second: 3, }, { first: 2, second: 4, } ] |
例 3 - 基本ケース
引数の値:
first
, second
, third
]first | second | third | :arrow_right: | 出力 |
---|---|---|---|---|
[ 1, 2 ] | [ word, a ] | [ { s1: 1, }, { s1: 2, } ] | [ { first: 1, second: word, third: { s1: 1, }, }, { first: 1, second: word, third: { s1: 2, }, }, { first: 1, second: a, third: { s1: 1, }, }, { first: 1, second: a, third: { s1: 2, }, }, { first: 2, second: word, third: { s1: 1, }, }, { first: 2, second: word, third: { s1: 2, }, }, { first: 2, second: a, third: { s1: 1, }, }, { first: 2, second: a, third: { s1: 2, }, } ] |
例 4 - Nullケース
引数の値:
first
, second
]first | second | :arrow_right: | 出力 |
---|---|---|---|
[ 1, null ] | [ null, 4 ] | [ { first: 1, second: null, }, { first: 1, second: 4, }, { first: null, second: null, }, { first: null, second: 4, } ] | |
[ 1, 2 ] | null | [ ] | |
[ ] | [ ] | [ ] | |
null | null | [ ] |