Skip to content

[AURON #1858] Introduce Flink Auron interface#2057

Merged
Tartarus0zm merged 1 commit intoapache:masterfrom
Tartarus0zm:flink_operator
Mar 3, 2026
Merged

[AURON #1858] Introduce Flink Auron interface#2057
Tartarus0zm merged 1 commit intoapache:masterfrom
Tartarus0zm:flink_operator

Conversation

@Tartarus0zm
Copy link
Contributor

Which issue does this PR close?

Closes #1858

Rationale for this change

Introducing Flink support for the Operator and Function interfaces implemented by Auron to facilitate subsequent feature development.

What changes are included in this PR?

  • add SupportsAuronNative
  • add FlinkAuronFunction
  • FlinkAuronOperator

Are there any user-facing changes?

  • No

How was this patch tested?

  • No need test

@github-actions github-actions bot added the flink label Mar 3, 2026
@Tartarus0zm
Copy link
Contributor Author

@richox @merrily01 CI is green, PTAL

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Introduces a small set of Flink-facing interfaces in auron-flink-runtime to standardize how Flink operators/functions expose Auron-native execution metadata for upcoming runtime features.

Changes:

  • Add SupportsAuronNative interface to expose physical plan nodes, output type, operator id, and metric node.
  • Add marker interfaces FlinkAuronOperator and FlinkAuronFunction to tag Flink components that support the Auron-native contract.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
auron-flink-extension/auron-flink-runtime/src/main/java/org/apache/auron/flink/runtime/operator/SupportsAuronNative.java Defines the shared contract for exposing Auron-native plan/type/metrics metadata.
auron-flink-extension/auron-flink-runtime/src/main/java/org/apache/auron/flink/runtime/operator/FlinkAuronOperator.java Marker interface for Flink operators that implement SupportsAuronNative.
auron-flink-extension/auron-flink-runtime/src/main/java/org/apache/auron/flink/runtime/operator/FlinkAuronFunction.java Marker interface for Flink functions that implement SupportsAuronNative.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/**
* Flink function which supports Auron should implement this interface.
*/
public interface FlinkAuronFunction extends SupportsAuronNative {}
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This marker interface is declared on a single line with inline braces. In this codebase interfaces are typically formatted with braces on separate lines (e.g., auron-core/src/main/java/org/apache/auron/jni/AuronAdaptorProvider.java:19-21), so please expand this to the standard multiline form for consistency.

Suggested change
public interface FlinkAuronFunction extends SupportsAuronNative {}
public interface FlinkAuronFunction extends SupportsAuronNative {
}

Copilot uses AI. Check for mistakes.
package org.apache.auron.flink.runtime.operator;

/**
* Flink function which supports Auron should implement this interface.
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Javadoc sentence is awkward (“Flink function which supports…”). Please adjust the wording (e.g., “Flink functions that support Auron should implement this interface.”) to improve readability in generated docs.

Suggested change
* Flink function which supports Auron should implement this interface.
* Flink functions that support Auron should implement this interface.

Copilot uses AI. Check for mistakes.
/**
* Flink operator which supports Auron should implement this interface.
*/
public interface FlinkAuronOperator extends SupportsAuronNative {}
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This marker interface is declared on a single line with inline braces. In this codebase interfaces are typically formatted with braces on separate lines (e.g., auron-core/src/main/java/org/apache/auron/jni/AuronAdaptorProvider.java:19-21), so please expand this to the standard multiline form for consistency.

Suggested change
public interface FlinkAuronOperator extends SupportsAuronNative {}
public interface FlinkAuronOperator extends SupportsAuronNative {
}

Copilot uses AI. Check for mistakes.
package org.apache.auron.flink.runtime.operator;

/**
* Flink operator which supports Auron should implement this interface.
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Javadoc sentence is awkward (“Flink operator which supports…”). Please adjust the wording (e.g., “Flink operators that support Auron should implement this interface.”) to improve readability in generated docs.

Suggested change
* Flink operator which supports Auron should implement this interface.
* Flink operators that support Auron should implement this interface.

Copilot uses AI. Check for mistakes.
import org.apache.flink.table.types.logical.RowType;

/**
* Support native Auron interface.
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Javadoc summary is grammatically incorrect/ambiguous (“Support native Auron interface.”). Please rephrase to something like “Supports Auron native interface.” so the subject matches the type name and reads clearly in generated docs.

Suggested change
* Support native Auron interface.
* Supports Auron native interface.

Copilot uses AI. Check for mistakes.
Copy link
Member

@merrily01 merrily01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! LGTM overall, just a few minor suggestions by Copilot. Mind updating those? @Tartarus0zm

@Tartarus0zm Tartarus0zm merged commit 6f77955 into apache:master Mar 3, 2026
115 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce Flink Auron interface

3 participants