OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

The Metadata versioning is not as expected when the order of the columns in the DDL is different

Open YMACHEN opened this issue 2 years ago • 1 comments

Affected module Metadata versioning

Describe the bug Dropping the table and then recreating it may lead to column description errors if the order of the columns in the DDL is different between the first and second times.

To Reproduce The first time's DDL ddl_v1

Metadata version 0.1 v1

The second time's DDL ddl_v2

Metadata version 0.2 v2

Expected behavior Expecting version 0.2 not to exist, as the DDL is the same, only the order is different.

Version:

  • OpenMetadata version: 1.2.3
  • OpenMetadata Ingestion package version: openmetadata-ingestion[docker]==1.2.3

Additional context Then I used this API to get some details http://hostname:8585/api/v1/tables/id/versions/0.2 In the 'changeDescription' function, 'oldValue' and 'newValue' are reversed. call api

YMACHEN avatar Dec 29 '23 05:12 YMACHEN

@mohityadav766 is this still an issue?

harshach avatar Jun 23 '24 18:06 harshach