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

[Improvement] correct the behaviors when creating Iceberg table with none distribution #6196

Closed
FANNG1 opened this issue Jan 13, 2025 · 0 comments · Fixed by #6214
Closed
Assignees
Labels
0.8.0 Release v0.8.0 improvement Improvements on everything

Comments

@FANNG1
Copy link
Contributor

FANNG1 commented Jan 13, 2025

What would you like to be improved?

Gravitino none distribution in API means the client side doesn't specify the distribution mode for the underlying catalog.
Iceberg none distribution means it doesn't distribute the data. Iceberg catalog transform Gravitino none distribution to Iceberg none distribution, it's not correct.

How should we improve?

No response

@FANNG1 FANNG1 added improvement Improvements on everything 0.8.0 Release v0.8.0 labels Jan 13, 2025
@FANNG1 FANNG1 self-assigned this Jan 13, 2025
FANNG1 added a commit that referenced this issue Jan 16, 2025
…thout specifying disribution mode (#6214)

### What changes were proposed in this pull request?

Adjust the distribution mode for creating Iceberg table with none
distribution. the following is the Spark adjust logic, the flink is
similar.

```java
  private DistributionMode defaultWriteDistributionMode() {
    if (table.sortOrder().isSorted()) {
      return RANGE;
    } else if (table.spec().isPartitioned()) {
      return HASH;
    } else {
      return NONE;
    }
  }
```

### Why are the changes needed?

Fix: #6196 

### Does this PR introduce _any_ user-facing change?

Yes, add document

### How was this patch tested?

add UT and IT
github-actions bot pushed a commit that referenced this issue Jan 16, 2025
…thout specifying disribution mode (#6214)

### What changes were proposed in this pull request?

Adjust the distribution mode for creating Iceberg table with none
distribution. the following is the Spark adjust logic, the flink is
similar.

```java
  private DistributionMode defaultWriteDistributionMode() {
    if (table.sortOrder().isSorted()) {
      return RANGE;
    } else if (table.spec().isPartitioned()) {
      return HASH;
    } else {
      return NONE;
    }
  }
```

### Why are the changes needed?

Fix: #6196 

### Does this PR introduce _any_ user-facing change?

Yes, add document

### How was this patch tested?

add UT and IT
jerryshao pushed a commit that referenced this issue Jan 16, 2025
…thout specifying disribution mode (#6299)

### What changes were proposed in this pull request?

Adjust the distribution mode for creating Iceberg table with none
distribution. the following is the Spark adjust logic, the flink is
similar.

```java
  private DistributionMode defaultWriteDistributionMode() {
    if (table.sortOrder().isSorted()) {
      return RANGE;
    } else if (table.spec().isPartitioned()) {
      return HASH;
    } else {
      return NONE;
    }
  }
```

### Why are the changes needed?

Fix: #6196 

### Does this PR introduce _any_ user-facing change?

Yes, add document

### How was this patch tested?

add UT and IT

Co-authored-by: FANNG <[email protected]>
jerqi pushed a commit that referenced this issue Jan 23, 2025
…thout specifying disribution mode (#6214)

### What changes were proposed in this pull request?

Adjust the distribution mode for creating Iceberg table with none
distribution. the following is the Spark adjust logic, the flink is
similar.

```java
  private DistributionMode defaultWriteDistributionMode() {
    if (table.sortOrder().isSorted()) {
      return RANGE;
    } else if (table.spec().isPartitioned()) {
      return HASH;
    } else {
      return NONE;
    }
  }
```

### Why are the changes needed?

Fix: #6196 

### Does this PR introduce _any_ user-facing change?

Yes, add document

### How was this patch tested?

add UT and IT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.8.0 Release v0.8.0 improvement Improvements on everything
Projects
None yet
1 participant