I think it is by design. You can read the FLIP, it says:

*Time Semantics*:

   -

   PTFs support event-time semantics only.
   -

   Processing-time doesn’t go well with batch mode and thus a unified API
   should built on event-time.
   The proposed onWatermark timers allow for making processing nevertheless
   and key-independent. An onWatermark should cover most processing time use
   cases.


But I think if the PTF doesn't implement the `onTime` method, it means the
function doesn't care about the time. In this case, we can just
convert directly in batch mode.

Best,
Shengkai

Gabor Somogyi <gabor.g.somo...@gmail.com> 于2025年3月28日周五 00:25写道:

> Hi All,
>
> Seems like the process table function scan operation is not supported in
> batch mode.
> Steps to repro [1] which gives the following exception:
>
> Caused by: org.apache.flink.table.api.TableException: Unsupported function
> for scan:PROCESS_TABLE
>
> Is this something which is planned?
>
> [1]
>
> https://github.com/gaborgsomogyi/flink/commit/494b297082de718eae16e4e555ed58cefa404676
>
> BR,
> G
>

Reply via email to