5.6 Streaming DF/DS 不支持的操作

到目前, DF/DS 的有些操作 Streaming DF/DS 还不支持.

  1. 多个Streaming 聚合(例如在 DF 上的聚合链)目前还不支持

  2. limit 和取前 N 行还不支持

  3. distinct 也不支持

  4. 仅仅支持对 complete 模式下的聚合操作进行排序操作

  5. 仅支持有限的外连接

  6. 有些方法不能直接用于查询和返回结果, 因为他们用在流式数据上没有意义.

    • count() 不能返回单行数据, 必须是s.groupBy().count()
    • foreach() 不能直接使用, 而是使用: ds.writeStream.foreach(...)
    • show() 不能直接使用, 而是使用 console sink

如果执行上面操作会看到这样的异常: operation XYZ is not supported with streaming DataFrames/Datasets.

Copyright © 尚硅谷大数据 2019 all right reserved,powered by Gitbook
该文件最后修订时间: 2019-09-08 16:04:40

results matching ""

    No results matching ""