At the time of this writing, Data Functions cannot be applied to real-time data. Real-time (streaming) data has the same limitations as "In-Database Data".
Depending on the scope of the data your function needs in order to produce a result, you may be able to adapt it to run within the Data Streams data-source (written in StreamBase EventFlow) using the standard Streaming operators.
For example, a Python data function in a Spotfire Analyst analysis may be adapted to provide the same result using the "Python Operator" described here:
TIBCO Streaming > Authoring Guide > Using Global Java Operators > Using the Python Operator The result can then be written to a Table for use in Spotfire as additional real-time data.
The full set of limitations is explained in the "Spotfire Analyst User's Guide" sections:
1.
Home / Handling Data / Data in Spotfire / Working with Streaming Data:
- Note also that any visualization or feature that is unavailable or has limited functionality for in-database data in general, is also unavailable or has limited functionality for streaming data. For general information about external data, see Working with "In-Database Data".
2.
Home / Handling Data / Data in Spotfire / Working with In-Database Data
- Virtual columns are not supported for in-db data.
- Not all of the standard Spotfire aggregation methods and expressions are available on all external systems.
- You cannot apply Data Functions on in-db data tables.
3.
Home / Loading Data / Accessing data from databases / Connectors / TIBCO Spotfire Data Streams / Streaming Data from TIBCO Spotfire® Data Streams
- Custom queries are not available for selecting data from TIBCO Spotfire Data Streams.