Skip to content

Conversation

@CosmosNi
Copy link
Contributor

sql transform support multi_if function

close #9153

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@hailin0 hailin0 requested review from Copilot and rewerma April 11, 2025 12:31
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.

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

Files not reviewed (1)
  • seatunnel-e2e/seatunnel-transforms-v2-e2e/seatunnel-transforms-v2-e2e-part-2/src/test/resources/sql_transform/func_multi_if.conf: Language not supported

### MULTI_IF
```MULTI_IF(condition1, value1, condition2, value2, ... conditionN, valueN, bValue)```

returns the first value for which the corresponding condition is true. If all conditions are false, it returns the last value.
Copy link
Member

Choose a reason for hiding this comment

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

@nielifeng nielifeng requested a review from Copilot April 17, 2025 01:20
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.

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

Files not reviewed (1)
  • seatunnel-e2e/seatunnel-transforms-v2-e2e/seatunnel-transforms-v2-e2e-part-2/src/test/resources/sql_transform/func_multi_if.conf: Language not supported

@CosmosNi CosmosNi closed this Jun 10, 2025
@Hisoka-X
Copy link
Member

Hi @CosmosNi , why close this PR? I think this pr is useful.

@CosmosNi
Copy link
Contributor Author

@Hisoka-X It seems to be the same as the case when function

@CosmosNi CosmosNi reopened this Jun 10, 2025
@Hisoka-X
Copy link
Member

Please resolve the conflicts.

…ltiIf

# Conflicts:
#	seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/ZetaSQLFunction.java
@CosmosNi CosmosNi requested a review from Hisoka-X June 12, 2025 03:20
@hailin0 hailin0 merged commit 4d1bf6e into apache:dev Jun 12, 2025
5 checks passed
chncaesar pushed a commit to chncaesar/seatunnel that referenced this pull request Jun 30, 2025
dybyte pushed a commit to dybyte/seatunnel that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][transform-v2] sql transform support multi_if function

3 participants