Skip to content

strange behavior for duplicate imports with imports_granularity="Module"  #6243

@xxchan

Description

@xxchan

e.g.,

use risingwave_batch::executor::{BoxedExecutor, JoinType};
use risingwave_batch::executor::{BoxedExecutor, JoinType};

After first fmt

use risingwave_batch::executor::{BoxedExecutor, BoxedExecutor, JoinType, JoinType};

After second fmt

use risingwave_batch::executor::{BoxedExecutor, JoinType, JoinType};

The behavior I want is that it can remove duplicates, like imports_granularity="Crate"

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEI-non-idempotencyIssue: non-idempotency (different formatting outcomes even though unchanged by user)UO-imports_granularityUnstable option: imports_granularityonly-with-optionRequires a non-default option value to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions