You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "dylanhz (via GitHub)" <gi...@apache.org> on 2025/12/26 13:00:41 UTC
[PR] [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy [flink]
dylanhz opened a new pull request, #27369:
URL: https://github.com/apache/flink/pull/27369
## What is the purpose of the change
Fix the issue where the nullability of the inferred data type is lost in FamilyArgumentStrategy.
## Brief change log
- Enforce expected nullability in FamilyArgumentStrategy.
- Fix incorrect error message.
## Verifying this change
- `InputTypeStrategiesTest`
- No built-in functions currently use FamilyArgumentStrategy with explicit nullability requirements, so this change has no impact on the existing public API.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not documented)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy [flink]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27369:
URL: https://github.com/apache/flink/pull/27369#issuecomment-4637809921
This PR has been closed since it has not had any activity in 120 days.
If you feel like this was a mistake, or you would like to continue working on it,
please feel free to re-open the PR and ask for a review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy [flink]
Posted by "davidradl (via GitHub)" <gi...@apache.org>.
davidradl commented on code in PR #27369:
URL: https://github.com/apache/flink/pull/27369#discussion_r2649175901
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/FamilyArgumentTypeStrategy.java:
##########
@@ -86,13 +86,16 @@ public Optional<DataType> inferArgumentType(
if (Objects.equals(expectedNullability, Boolean.FALSE) && actualType.isNullable()) {
return callContext.fail(
throwOnFailure,
- "Unsupported argument type. Expected nullable type of family '%s' but actual type was '%s'.",
+ "Unsupported argument type. Expected NOT NULL type of family '%s' but actual type was '%s'.",
expectedFamily,
actualType);
}
// type is part of the family
if (actualType.getTypeRoot().getFamilies().contains(expectedFamily)) {
+ if (Objects.equals(expectedNullability, Boolean.TRUE) && !actualType.isNullable()) {
Review Comment:
I think it would be useful for the issue text / PR text to give SQL examples of the reported issue and the expected behaviour - currently descriptions are very low level and require table planner knowledge. This would help users find and identify this issue at the SQL level
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy [flink]
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #27369:
URL: https://github.com/apache/flink/pull/27369#issuecomment-3692844565
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c3426f20d13b77011942705edecedda72ad72a9a",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c3426f20d13b77011942705edecedda72ad72a9a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c3426f20d13b77011942705edecedda72ad72a9a UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy [flink]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #27369: [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy
URL: https://github.com/apache/flink/pull/27369
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy [flink]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27369:
URL: https://github.com/apache/flink/pull/27369#issuecomment-4395007304
This PR is being marked as stale since it has not had any activity in the last 90 days.
If you would like to keep this PR alive, please leave a comment asking for a review.
If the PR has merge conflicts, update it with the latest from the base branch.
If you are having difficulty finding a reviewer, please reach out to the
community, contact details can be found here: https://flink.apache.org/what-is-flink/community/
If this PR is no longer valid or desired, please feel free to close it.
If no activity occurs in the next 30 days, it will be automatically closed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38841][table] Enforce expected nullability in FamilyArgumentStrategy [flink]
Posted by "dylanhz (via GitHub)" <gi...@apache.org>.
dylanhz commented on code in PR #27369:
URL: https://github.com/apache/flink/pull/27369#discussion_r2650088394
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/FamilyArgumentTypeStrategy.java:
##########
@@ -86,13 +86,16 @@ public Optional<DataType> inferArgumentType(
if (Objects.equals(expectedNullability, Boolean.FALSE) && actualType.isNullable()) {
return callContext.fail(
throwOnFailure,
- "Unsupported argument type. Expected nullable type of family '%s' but actual type was '%s'.",
+ "Unsupported argument type. Expected NOT NULL type of family '%s' but actual type was '%s'.",
expectedFamily,
actualType);
}
// type is part of the family
if (actualType.getTypeRoot().getFamilies().contains(expectedFamily)) {
+ if (Objects.equals(expectedNullability, Boolean.TRUE) && !actualType.isNullable()) {
Review Comment:
Thanks for your suggestion! I have updated the PR description. Please let me know if you have any further feedback.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org