Table Functions - use
Table of contents
- use TableName
Set the current default table to a saved one.
Example:
function example() {
search {from="-8h"} sContent("@tags","fpl-example-data")
let {id, isx5, isprime, odd, even, divisors} = f("@fields")
}
stream demo_table=example()
use demo_table
aggregate even_count=count() by even
export even_count
use demo_table
aggregate odd_count=count() by odd
export odd_count
As shown, the command use
is useful in doing multiple computations based on one basic table.