You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/11/22 16:19:04 UTC
[GitHub] [flink] wuchong opened a new pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
wuchong opened a new pull request #14160:
URL: https://github.com/apache/flink/pull/14160
<!--
*Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*
*Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.*
## Contribution Checklist
- Make sure that the pull request corresponds to a [JIRA issue](https://issues.apache.org/jira/projects/FLINK/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no JIRA issue.
- Name the pull request in the form "[FLINK-XXXX] [component] Title of the pull request", where *FLINK-XXXX* should be replaced by the actual issue number. Skip *component* if you are unsure about which is the best component.
Typo fixes that have no associated JIRA issue should be named following this pattern: `[hotfix] [docs] Fix typo in event time introduction` or `[hotfix] [javadocs] Expand JavaDoc for PuncuatedWatermarkGenerator`.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes. You can set up Azure Pipelines CI to do that following [this guide](https://cwiki.apache.org/confluence/display/FLINK/Azure+Pipelines#AzurePipelines-Tutorial:SettingupAzurePipelinesforaforkoftheFlinkrepository).
- Each pull request should address only one issue, not mix up code from multiple issues.
- Each commit in the pull request has a meaningful commit message (including the JIRA id)
- Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
**(The sections below can be removed for hotfixes of typos)**
-->
## What is the purpose of the change
Usually, CDC tools deliver change events to message queue in an **at-least-once** semantic. There might be duplicate INSERT/UPDATE/DELETE messages for the same primary key. However, when appling TopN query on this created source table, the TopN operator will thrown exception: `Caused by: java.lang.RuntimeException: Can not retract a non-existent record`.
We introduced a configuration `table.exec.source.cdc-events-duplicate=true|false` to indicate whether the cdc source produce duplicate messages that require the framework to deduplicate. By default, the value is false (for backward-compatibility). When it is set to true, it requires to set a primary key on the source, and the framework will this the primary key to deduplicate/normalize the changelog (using the ChangelogNormalize operator).
This option only take effect on the cdc sources which will produce full changelog, including INSERT/UPDATE_BEFORE/UPDATE_AFTER/DELETE events. So it doesn't affect the upsert sources, because upsert sources always generate a ChangelogNormalize operator after it.
This pull request also fixes FLINK-20205 to not send `UPDATE_BEFORE` messages if the downstream doesn't need it for CDC sources.
## Brief change log
- Add validation if the configuration is enabled but primary key is not defined.
- Generate ChangelogNormalize node after CDC source if `table.exec.source.cdc-events-duplicate=true`.
- Drop `UPDATE_BEFORE` messages for CDC source if downstream doesn't need it, because `ChangelogNormalize` also doesn't need the before messages.
## Verifying this change
- Added plan tests for the configuration is enabled.
- Added IT cases for the configuration is enabled.
- Added unit tests for metadata handler tests for the new `StreamExecDropUpdateBefore` node.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes / **no**)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**)
- The serializers: (yes / **no** / don't know)
- The runtime per-record code paths (performance sensitive): (yes / **no** / don't know)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / **no** / don't know)
- The S3 file system connector: (yes / **no** / don't know)
## Documentation
- Does this pull request introduce a new feature? (yes / **no**)
- If yes, how is the feature documented? (**not applicable** / docs / JavaDocs / 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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 44ff14a0d30e454dc2502d1f644fdb94bf6e64bd Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 250fae8059b6141ed0bb3e244a522751f20c2e8b Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955)
* af478685f91c3cf99c0553eeddd320bb8c3f4b35 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731772090
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.
## Automated Checks
Last check on commit 44ff14a0d30e454dc2502d1f644fdb94bf6e64bd (Sun Nov 22 16:21:17 UTC 2020)
✅no warnings
<sub>Mention the bot in a comment to re-run the automated checks.</sub>
## Review Progress
* ❓ 1. The [description] looks good.
* ❓ 2. There is [consensus] that the contribution should go into to Flink.
* ❓ 3. Needs [attention] from.
* ❓ 4. The change fits into the overall [architecture].
* ❓ 5. Overall code [quality] is good.
Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
- `@flinkbot approve all` to approve all aspects
- `@flinkbot approve-until architecture` to approve everything until `architecture`
- `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
- `@flinkbot disapprove architecture` to remove an approval you gave earlier
</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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] wuchong commented on a change in pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
wuchong commented on a change in pull request #14160:
URL: https://github.com/apache/flink/pull/14160#discussion_r530144974
##########
File path: flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/sources/DynamicSourceUtils.java
##########
@@ -267,6 +302,20 @@ private static void validateScanSourceForStreaming(
scanSource.getClass().getName()
)
);
+ } else if (!changelogMode.containsOnly(RowKind.INSERT)) {
Review comment:
This is in the else branch which means it doesn't match `!hasUpdateBefore && hasUpdateAfter` (upsert source).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 250fae8059b6141ed0bb3e244a522751f20c2e8b Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* af478685f91c3cf99c0553eeddd320bb8c3f4b35 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] wuchong commented on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
wuchong commented on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-733717331
Build is passed in my private account: https://dev.azure.com/imjark/Flink/_build/results?buildId=362&view=results
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* bdea131f32cf7f25237f44e7246e93a219ea1d8d Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930)
* 250fae8059b6141ed0bb3e244a522751f20c2e8b UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
}, {
"hash" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"triggerType" : "PUSH"
}, {
"hash" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10083",
"triggerID" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"triggerType" : "PUSH"
}, {
"hash" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10077",
"triggerID" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* af478685f91c3cf99c0553eeddd320bb8c3f4b35 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000)
* 09ffbbbdb96e7d76175e5f45b940444d9df43d17 UNKNOWN
* b67c5115a88afff62c32307f8cfe7210dd10d646 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10083)
* 2b9ebebcf46ca6bd618fec1cc430907f029701c0 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10077)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 040aeb255189647566ce8417e135c8a9d6fc13aa Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* bdea131f32cf7f25237f44e7246e93a219ea1d8d Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930)
* 250fae8059b6141ed0bb3e244a522751f20c2e8b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] wuchong commented on a change in pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
wuchong commented on a change in pull request #14160:
URL: https://github.com/apache/flink/pull/14160#discussion_r528543796
##########
File path: flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/TemporalJoinITCase.scala
##########
@@ -537,51 +523,35 @@ class TemporalJoinITCase(state: StateBackendMode)
" ON o.currency = r.currency"
tEnv.executeSql(sql).await()
- val rawResult = getRawResults("rowtime_default_sink")
// Note: the event time semantics in delete event is when the delete event happened,
// records "+I(2,US Dollar)" and "+I(3,RMB)" would not correlate the deleted events
val expected = List(
- "+I(1,Euro,12,2020-08-15T00:01,null,null)",
- "+I(2,US Dollar,1,2020-08-15T00:02,null,null)",
- "+I(3,RMB,40,2020-08-15T00:03,null,null)",
- "+I(4,Euro,14,2020-08-16T00:04,118,2020-08-16T00:01)",
- "-U(2,US Dollar,1,2020-08-16T00:03,106,2020-08-16T00:02)",
- "+U(2,US Dollar,18,2020-08-16T00:03,106,2020-08-16T00:02)",
- "+I(5,RMB,40,2020-08-16T00:03,null,null)",
- "+I(6,RMB,40,2020-08-16T00:04,null,null)",
- "-D(6,RMB,40,2020-08-16T00:04,null,null)")
- assertEquals(expected.sorted, rawResult.sorted)
+ "1,Euro,12,2020-08-15T00:01,114,2020-08-15T00:00:01",
Review comment:
We drop the before messages, therefore, `1,Euro` can correlate a value now.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
}, {
"hash" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"triggerType" : "PUSH"
}, {
"hash" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* af478685f91c3cf99c0553eeddd320bb8c3f4b35 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000)
* 09ffbbbdb96e7d76175e5f45b940444d9df43d17 UNKNOWN
* b67c5115a88afff62c32307f8cfe7210dd10d646 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 250fae8059b6141ed0bb3e244a522751f20c2e8b Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955)
* af478685f91c3cf99c0553eeddd320bb8c3f4b35 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 44ff14a0d30e454dc2502d1f644fdb94bf6e64bd Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904)
* 040aeb255189647566ce8417e135c8a9d6fc13aa Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 44ff14a0d30e454dc2502d1f644fdb94bf6e64bd Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 040aeb255189647566ce8417e135c8a9d6fc13aa Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916)
* bdea131f32cf7f25237f44e7246e93a219ea1d8d Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] wuchong merged pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
wuchong merged pull request #14160:
URL: https://github.com/apache/flink/pull/14160
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 040aeb255189647566ce8417e135c8a9d6fc13aa Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916)
* bdea131f32cf7f25237f44e7246e93a219ea1d8d UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 44ff14a0d30e454dc2502d1f644fdb94bf6e64bd UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] wuchong commented on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
wuchong commented on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-732157409
Hi @leonardBang , this pull request is ready to 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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 44ff14a0d30e454dc2502d1f644fdb94bf6e64bd Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904)
* 040aeb255189647566ce8417e135c8a9d6fc13aa UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
}, {
"hash" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"triggerType" : "PUSH"
}, {
"hash" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10083",
"triggerID" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"triggerType" : "PUSH"
}, {
"hash" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* af478685f91c3cf99c0553eeddd320bb8c3f4b35 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000)
* 09ffbbbdb96e7d76175e5f45b940444d9df43d17 UNKNOWN
* b67c5115a88afff62c32307f8cfe7210dd10d646 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10083)
* 2b9ebebcf46ca6bd618fec1cc430907f029701c0 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] leonardBang commented on a change in pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
leonardBang commented on a change in pull request #14160:
URL: https://github.com/apache/flink/pull/14160#discussion_r530101454
##########
File path: docs/dev/table/connectors/formats/canal.zh.md
##########
@@ -219,6 +219,17 @@ Format 参数
</tbody>
</table>
+注意事项
+----------------
+
+### 重复的变更事件
+
+在正常的操作环境下,Canal 应用能以 **exactly-once** 的语义投递每条变更事件。在这种情况下,Flink 消费 Canal 产生的变更事件能够工作地很好。
Review comment:
```suggestion
在正常的操作环境下,Canal 应用能以 **exactly-once** 的语义投递每条变更事件。在这种情况下,Flink 消费 Canal 产生的变更事件能够工作得很好。
```
##########
File path: docs/dev/table/connectors/formats/debezium.md
##########
@@ -282,6 +282,14 @@ Use format `debezium-avro-confluent` to interpret Debezium Avro messages and for
Caveats
----------------
+### Duplicate change events
+
+Under normal operating scenarios, the Debezium application delivers every change event **exactly-once**. This works pretty well when Flink consumes Debezium produced events in this situation.
Review comment:
```suggestion
Under normal operating scenarios, the Debezium application delivers every change event **exactly-once**. Flink works pretty well when consumes Debezium produced events in this situation.
```
##########
File path: flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/sources/DynamicSourceUtils.java
##########
@@ -267,6 +302,20 @@ private static void validateScanSourceForStreaming(
scanSource.getClass().getName()
)
);
+ } else if (!changelogMode.containsOnly(RowKind.INSERT)) {
Review comment:
The condition`!changelogMode.containsOnly(RowKind.INSERT)` does not indicate the source is a `CDC source which is non-upsert`
##########
File path: flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/TemporalJoinITCase.scala
##########
@@ -455,15 +455,12 @@ class TemporalJoinITCase(state: StateBackendMode)
" ON o.currency = r.currency"
tEnv.executeSql(sql).await()
- val rawResult = getRawResults("rowtime_default_sink")
val expected = List(
- "+I(1,Euro,12,2020-08-15T00:01,114,2020-08-15T00:00:01)",
- "+I(2,US Dollar,1,2020-08-15T00:02,102,2020-08-15T00:00:02)",
- "+I(3,RMB,40,2020-08-15T00:03,702,2020-08-15T00:00:04)",
- "+I(4,Euro,14,2020-08-16T00:04,118,2020-08-16T00:01)",
- "-U(2,US Dollar,1,2020-08-16T00:03,106,2020-08-16T00:02)",
- "+U(2,US Dollar,18,2020-08-16T00:03,106,2020-08-16T00:02)")
- assertEquals(expected.sorted, rawResult.sorted)
+ "1,Euro,12,2020-08-15T00:01,114,2020-08-15T00:00:01",
+ "3,RMB,40,2020-08-15T00:03,702,2020-08-15T00:00:04",
+ "4,Euro,14,2020-08-16T00:04,118,2020-08-16T00:01",
+ "2,US Dollar,18,2020-08-16T00:03,106,2020-08-16T00:02")
Review comment:
```suggestion
"1,Euro,12,2020-08-15T00:01,114,2020-08-15T00:00:01",
"2,US Dollar,18,2020-08-16T00:03,106,2020-08-16T00:02",
"3,RMB,40,2020-08-15T00:03,702,2020-08-15T00:00:04",
"4,Euro,14,2020-08-16T00:04,118,2020-08-16T00:01")
```
minor: we can give a more readable order that is same as the left table input.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
}, {
"hash" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"triggerType" : "PUSH"
}, {
"hash" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10083",
"triggerID" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"triggerType" : "PUSH"
}, {
"hash" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10077",
"triggerID" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 09ffbbbdb96e7d76175e5f45b940444d9df43d17 UNKNOWN
* b67c5115a88afff62c32307f8cfe7210dd10d646 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10083)
* 2b9ebebcf46ca6bd618fec1cc430907f029701c0 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10077)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
}, {
"hash" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* af478685f91c3cf99c0553eeddd320bb8c3f4b35 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000)
* 09ffbbbdb96e7d76175e5f45b940444d9df43d17 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* bdea131f32cf7f25237f44e7246e93a219ea1d8d Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14160:
URL: https://github.com/apache/flink/pull/14160#issuecomment-731775317
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9904",
"triggerID" : "44ff14a0d30e454dc2502d1f644fdb94bf6e64bd",
"triggerType" : "PUSH"
}, {
"hash" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9916",
"triggerID" : "040aeb255189647566ce8417e135c8a9d6fc13aa",
"triggerType" : "PUSH"
}, {
"hash" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9930",
"triggerID" : "bdea131f32cf7f25237f44e7246e93a219ea1d8d",
"triggerType" : "PUSH"
}, {
"hash" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9955",
"triggerID" : "250fae8059b6141ed0bb3e244a522751f20c2e8b",
"triggerType" : "PUSH"
}, {
"hash" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10000",
"triggerID" : "af478685f91c3cf99c0553eeddd320bb8c3f4b35",
"triggerType" : "PUSH"
}, {
"hash" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "09ffbbbdb96e7d76175e5f45b940444d9df43d17",
"triggerType" : "PUSH"
}, {
"hash" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10083",
"triggerID" : "b67c5115a88afff62c32307f8cfe7210dd10d646",
"triggerType" : "PUSH"
}, {
"hash" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10077",
"triggerID" : "2b9ebebcf46ca6bd618fec1cc430907f029701c0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 09ffbbbdb96e7d76175e5f45b940444d9df43d17 UNKNOWN
* 2b9ebebcf46ca6bd618fec1cc430907f029701c0 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10077)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] wuchong commented on a change in pull request #14160: [FLINK-19795][table-blink] Fix Flink SQL throws exception when changelog source contains duplicate change events
Posted by GitBox <gi...@apache.org>.
wuchong commented on a change in pull request #14160:
URL: https://github.com/apache/flink/pull/14160#discussion_r528543796
##########
File path: flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/TemporalJoinITCase.scala
##########
@@ -537,51 +523,35 @@ class TemporalJoinITCase(state: StateBackendMode)
" ON o.currency = r.currency"
tEnv.executeSql(sql).await()
- val rawResult = getRawResults("rowtime_default_sink")
// Note: the event time semantics in delete event is when the delete event happened,
// records "+I(2,US Dollar)" and "+I(3,RMB)" would not correlate the deleted events
val expected = List(
- "+I(1,Euro,12,2020-08-15T00:01,null,null)",
- "+I(2,US Dollar,1,2020-08-15T00:02,null,null)",
- "+I(3,RMB,40,2020-08-15T00:03,null,null)",
- "+I(4,Euro,14,2020-08-16T00:04,118,2020-08-16T00:01)",
- "-U(2,US Dollar,1,2020-08-16T00:03,106,2020-08-16T00:02)",
- "+U(2,US Dollar,18,2020-08-16T00:03,106,2020-08-16T00:02)",
- "+I(5,RMB,40,2020-08-16T00:03,null,null)",
- "+I(6,RMB,40,2020-08-16T00:04,null,null)",
- "-D(6,RMB,40,2020-08-16T00:04,null,null)")
- assertEquals(expected.sorted, rawResult.sorted)
+ "1,Euro,12,2020-08-15T00:01,114,2020-08-15T00:00:01",
Review comment:
We drop the before messages in the temporal table, therefore, `1,Euro` can correlate a value now.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org