Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Merge into paimon table from another paimon table will have ambiguous __paimon_file_path #5024

Open
2 tasks done
Aitozi opened this issue Feb 6, 2025 · 0 comments · May be fixed by #5026
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Aitozi
Copy link
Contributor

Aitozi commented Feb 6, 2025

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

1.0

Compute Engine

Spark

Minimal reproduce step

  test(s"Paimon MergeInto: two paimon table") {
    withTable("source", "target") {
      createTable("target", "a INT, b INT, c STRING", Seq("a"))
      createTable("source", "a INT, b INT, c STRING", Seq("a"))

      spark.sql("INSERT INTO source values (1, 100, 'c11'), (3, 300, 'c33')")
      spark.sql("INSERT INTO target values (1, 10, 'c1'), (2, 20, 'c2')")

      spark.sql(s"""
                   |MERGE INTO target
                   |USING source
                   |ON target.a = source.a
                   |WHEN MATCHED THEN
                   |UPDATE SET a = source.a, b = source.b, c = source.c
                   |""".stripMargin)

      checkAnswer(
        spark.sql("SELECT * FROM target ORDER BY a, b"),
        Row(1, 100, "c11") :: Row(2, 20, "c2") :: Nil)
    }

What doesn't meet your expectations?

Image

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@Aitozi Aitozi added the bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant