Skip to content

Commit

Permalink
[apache#2447] feat(spark-connector): support alter table AddColumn an…
Browse files Browse the repository at this point in the history
…d DropColumn for spark-connector
  • Loading branch information
caican00 committed Mar 7, 2024
1 parent c5317d4 commit 612d59f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ void testTransformAddColumn() {
com.datastrato.gravitino.rel.TableChange.AddColumn gravitinoAddColumn =
(com.datastrato.gravitino.rel.TableChange.AddColumn) gravitinoChange;

Assertions.assertEquals(1, sparkAddColumn.fieldNames().length);
Assertions.assertEquals(1, gravitinoAddColumn.fieldName().length);
Assertions.assertEquals(sparkAddColumn.fieldNames(), gravitinoAddColumn.fieldName());
Assertions.assertTrue(
"string".equalsIgnoreCase(gravitinoAddColumn.getDataType().simpleString()));
Expand All @@ -68,8 +66,6 @@ void testTransformDeleteColumn() {
com.datastrato.gravitino.rel.TableChange.DeleteColumn gravitinoDeleteColumn =
(com.datastrato.gravitino.rel.TableChange.DeleteColumn) gravitinoChange;

Assertions.assertEquals(1, sparkDeleteColumn.fieldNames().length);
Assertions.assertEquals(1, gravitinoDeleteColumn.fieldName().length);
Assertions.assertEquals(sparkDeleteColumn.fieldNames(), gravitinoDeleteColumn.fieldName());
Assertions.assertEquals(sparkDeleteColumn.ifExists(), gravitinoDeleteColumn.getIfExists());
}
Expand Down

0 comments on commit 612d59f

Please sign in to comment.