AWS Quicksight,红移 "A subquery that refers to a nested table cannot contain WINDOW operation"

AWS Quicksight, Redshift "A subquery that refers to a nested table cannot contain WINDOW operation"

错误信息是:

sourceErrorCode:    
500310
sourceErrorMessage:     
[Amazon](500310) Invalid operation: Spectrum nested query error Details: 
----------------------------------------------- 
error: Spectrum nested query error code: 8001 context: A subquery that 
refers to a nested table cannot contain WINDOW operation. 
query: 0 
location: nested_query_rewriter.cpp:756 
process: padbmaster 

当我将数据从 Redshift Spectrum 添加到 Quicksight 并尝试创建一些可视化时,就会发生这种情况。我知道 Redshift Spectrum 有一些 nested data limitations 但我不是自己编写查询(因为我使用的是 Quicksight)。

有什么我可以做的吗?我可以使用具有相同数据的 Athena,它工作正常。

我在 Quicksight 上使用的自定义 SQL 表达式是:

select
d.metadata.x as x,
d.metadata.y as y,
d.metadata.z as z,
d.metadata.w as w,
d.metadata.a as a,
r.timestamp.seconds as ts_seconds,
r.timestamp.microseconds as ts_microseconds,
r.b as b
from s3.data as d, d.results r

(显然是模拟字段)

最后,为了方便起见,我把数据扁平化了