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]: TableController set partition to string value “null” when getting file list for a non-partitioned table #2407

Closed
2 tasks done
Tracked by #2448
liaoyt opened this issue Dec 5, 2023 · 0 comments · Fixed by #2408
Closed
2 tasks done
Tracked by #2448
Labels
type:bug Something isn't working

Comments

@liaoyt
Copy link
Contributor

liaoyt commented Dec 5, 2023

What happened?

Error occurs when access to table files of a non-partitioned table

image

Affects Versions

master

What engines are you seeing the problem on?

AMS

How to reproduce

  • create an internal catalog
  • create iceberg table without partition filed
  • access data file from dashboard

Relevant log output

java.lang.IllegalArgumentException: Invalid partition data, too many fields (expecting 0): null
        at org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkArgument(Preconditions.java:326) ~[iceberg-bundled-guava-1.3.0.jar:?]
        at com.netease.arctic.utils.ArcticDataFiles.data(ArcticDataFiles.java:89) ~[amoro-core-0.7.0-SNAPSHOT.jar:?]
        at com.netease.arctic.server.dashboard.MixedAndIcebergTableDescriptor.collectFileInfo(MixedAndIcebergTableDescriptor.java:503) ~[amoro-ams-server-0.7.0-SNAPSHOT.jar:?]
        at com.netease.arctic.server.dashboard.MixedAndIcebergTableDescriptor.getTableFilesInternal(MixedAndIcebergTableDescriptor.java:491) ~[amoro-ams-server-0.7.0-SNAPSHOT.jar:?]
        at com.netease.arctic.server.dashboard.MixedAndIcebergTableDescriptor.getTableFiles(MixedAndIcebergTableDescriptor.java:396) ~[amoro-ams-server-0.7.0-SNAPSHOT.jar:?]
        at com.netease.arctic.server.dashboard.ServerTableDescriptor.getTableFile(ServerTableDescriptor.java:110) ~[amoro-ams-server-0.7.0-SNAPSHOT.jar:?]
        at com.netease.arctic.server.dashboard.controller.TableController.getPartitionFileListInfo(TableController.java:461) ~[amoro-ams-server-0.7.0-SNAPSHOT.jar:?]

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant