嵌套平板 - 這是扁平的子查詢 - 應該工作。請注意,它需要大量的括號。 鑑於架構:
{nested_repeated_f:[ {inner_nested_repeated_f:[ {string_f}]}]}
下面的查詢將工作:
SELECT t1.f1 FROM (
SELECT nested_repeated_f.inner_nested_repeated_f.string_f as f1
FROM (FLATTEN((
SELECT nested_repeated_f.inner_nested_repeated_f.string_f
FROM
(FLATTEN(lotsOdata.nested002, nested_repeated_f.inner_nested_repeated_f))
), nested_repeated_f))) as t1
JOIN (
SELECT nested_repeated_f.inner_nested_repeated_f.string_f as f2
FROM (FLATTEN((
SELECT nested_repeated_f.inner_nested_repeated_f.string_f
FROM
(FLATTEN(lotsOdata.nested002, nested_repeated_f.inner_nested_repeated_f))
), nested_repeated_f))) as t2
on t1.f1 = t2.f2
問題與一個小例子編輯。謝謝 – user2227402 2013-04-22 18:52:36
更新了具體查詢示例的響應。 – 2013-04-23 22:51:21