declareStreamingSQLTable
语法
declareStreamingSQLTable(table)
参数
table 表对象,目前仅支持共享内存表,包括通过 share
共享的普通内存表、键值内存表、索引内存表。
详情
将指定表声明为流式 SQL 的输入表。仅被声明的表才能通过 registerStreamingSQL
注册流式 SQL
查询。该声明操作不会影响该表在普通 SQL 查询或其他功能中的使用。
返回值:无
例子
t=table(1..10 as id,rand(100,10) as val)
share t as st
declareStreamingSQLTable(st)
registerStreamingSQL("select avg(val) from st")
相关函数:listStreamingSQLTables, registerStreamingSQL, revokeStreamingSQLTable