For File DataSource and Information Link Data Source it is possible to replace only parts of how the data table is constructed w/o impacting the rest of the data table construction (see e.g. https://community.tibco.com/s/article/How-to-replace-the-File-DataSource-of-a-Data-Table-in-TIBCO-Spotfire-Using-IronPython-Scripting).
However, according to case 02203124 there is no equivalent to CanReplaceDataFlow for a Data Table DataSource. It would be great if the API could be updated to offer the same functionality for all DataSource types where applicable.