Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,11 @@ public void testTrinoAlterTablePreservesTableMetadata()
}
}

@Test(groups = {DELTA_LAKE_DATABRICKS, DELTA_LAKE_OSS, PROFILE_SPECIFIC_TESTS})
@Test(groups = {DELTA_LAKE_DATABRICKS, DELTA_LAKE_EXCLUDE_73, DELTA_LAKE_OSS, PROFILE_SPECIFIC_TESTS})
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the exclusion?

Copy link
Copy Markdown
Member Author

@ebyhr ebyhr Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 7.3 doesn't support delta.minReaderVersion and delta.minWriterVersion table properties. It causes query failure.

I will take a look if we shouldn't write those properties when existing tables don't have those properties.

io.trino.tempto.query.QueryExecutionException: java.sql.SQLException: [Databricks][DatabricksJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: Error running query: org.apache.spark.sql.AnalysisException: Unknown configuration was specified: delta.minWriterVersion;, Query: CREATE TABLE default.test_trino_preserves_versions_vtizu3eknquk (col int) USING DELTA LOCATION 's3://trino-ci-test/databricks-compatibility-test-test_trino_preserves_versions_vtizu3eknquk'TBLPROPERTIES ('delta.minReaderVersion'='1', 'delta.minWriterVersion'='1', 'delta.checkpointInterval' = 1).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation. Can it be captured as a code comment?

public void testTrinoPreservesReaderAndWriterVersions()
{
// Databricks 7.3 doesn't support 'delta.minReaderVersion' and 'delta.minWriterVersion' table properties
// Writing those properties to protocol entry in COMMENT and ADD COLUMN statements is fine
String tableName = "test_trino_preserves_versions_" + randomTableSuffix();
String tableDirectory = "databricks-compatibility-test-" + tableName;

Expand Down