[ 
https://issues.apache.org/jira/browse/FLINK-32444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17789031#comment-17789031
 ] 

Piotr Nowojski commented on FLINK-32444:
----------------------------------------

Instead of checking for the configured state backend, I would add some getter 
to the statebackend interface like:
{code:java}
boolean StateBackend#storesObjectReferences(); // false for RocksDB, true for 
HashMap
{code}.

> Enable object reuse for Flink SQL jobs by default
> -------------------------------------------------
>
>                 Key: FLINK-32444
>                 URL: https://issues.apache.org/jira/browse/FLINK-32444
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table SQL / API
>            Reporter: Jark Wu
>            Priority: Major
>             Fix For: 1.19.0
>
>
> Currently, object reuse is not enabled by default for Flink Streaming Jobs, 
> but is enabled by default for Flink Batch jobs. That is not consistent for 
> stream-batch unification. Besides, SQL operators are safe to enable object 
> reuse and this is a great performance improvement for SQL jobs. 
> We should also be careful with the Table-DataStream conversion case 
> (StreamTableEnvironment) which is not safe to enable object reuse by default. 
> Maybe we can just enable it for SQL Client/Gateway and TableEnvironment. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to