[
https://issues.apache.org/jira/browse/FLINK-34517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17820947#comment-17820947
]
xuyang commented on FLINK-34517:
--------------------------------
Hi, [~JustinLee] . Do you mean there are some configs lost when executing
procedure in SqlGateway? IIUC, the table config used when calling procedure is
from `ExecutableOperationContextImpl`, which is built in `OperationExecutor`
with the logic following.
{code:java}
private TableConfig tableConfig() {
Configuration operationConfig = sessionContext.getSessionConf().clone();
operationConfig.addAll(executionConfig);
TableConfig tableConfig = TableConfig.getDefault();
tableConfig.setRootConfiguration(sessionContext.getDefaultContext().getFlinkConfig());
tableConfig.addConfiguration(operationConfig);
return tableConfig;
} {code}
> environment configs ignored when calling procedure operation
> ------------------------------------------------------------
>
> Key: FLINK-34517
> URL: https://issues.apache.org/jira/browse/FLINK-34517
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Affects Versions: 1.18.0
> Reporter: JustinLee
> Assignee: JustinLee
> Priority: Major
>
> when calling procedure operation in Flink SQL, the ProcedureContext only
> contains the underlying application-specific config , not
> environment-specific config.
> to be more specific, in a Flink sql app of the same
> StreamExecutionEnvironment which has a config1. when executing a sql query,
> config1 works, while calling a sql procedure, config1 doesn't work, which
> apparently is not an expected behavior.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)