-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add Databricks 11.3 test environment to Delta Lake #14848
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package io.trino.tests.product.launcher.env.environment; | ||
|
|
||
| import com.google.inject.Inject; | ||
| import io.trino.tests.product.launcher.docker.DockerFiles; | ||
| import io.trino.tests.product.launcher.env.common.Standard; | ||
| import io.trino.tests.product.launcher.env.common.TestsEnvironment; | ||
|
|
||
| import static java.util.Objects.requireNonNull; | ||
|
|
||
| @TestsEnvironment | ||
| public class EnvSinglenodeDeltaLakeDatabricks113 | ||
| extends AbstractSinglenodeDeltaLakeDatabricks | ||
| { | ||
| @Inject | ||
| public EnvSinglenodeDeltaLakeDatabricks113(Standard standard, DockerFiles dockerFiles) | ||
| { | ||
| super(standard, dockerFiles); | ||
| } | ||
|
|
||
| @Override | ||
| String databricksTestJdbcUrl() | ||
| { | ||
| return requireNonNull(System.getenv("DATABRICKS_113_JDBC_URL"), "Environment DATABRICKS_113_JDBC_URL was not set"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package io.trino.tests.product.launcher.suite.suites; | ||
|
|
||
| import com.google.common.collect.ImmutableList; | ||
| import io.trino.tests.product.launcher.env.EnvironmentConfig; | ||
| import io.trino.tests.product.launcher.env.environment.EnvSinglenodeDeltaLakeDatabricks113; | ||
| import io.trino.tests.product.launcher.suite.SuiteDeltaLakeDatabricks; | ||
| import io.trino.tests.product.launcher.suite.SuiteTestRun; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| import static io.trino.tests.product.launcher.suite.SuiteTestRun.testOnEnvironment; | ||
|
|
||
| public class SuiteDeltaLakeDatabricks113 | ||
| extends SuiteDeltaLakeDatabricks | ||
| { | ||
| @Override | ||
| public List<SuiteTestRun> getTestRuns(EnvironmentConfig config) | ||
| { | ||
| return ImmutableList.of( | ||
| testOnEnvironment(EnvSinglenodeDeltaLakeDatabricks113.class) | ||
| .withGroups("configured_features", "delta-lake-databricks") | ||
| .withExcludedGroups("delta-lake-exclude-113") | ||
| .withExcludedTests(getExcludedTests()) | ||
| .build()); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ | |
| import static io.trino.tempto.assertions.QueryAssert.Row.row; | ||
| import static io.trino.tempto.assertions.QueryAssert.assertThat; | ||
| import static io.trino.tests.product.TestGroups.DELTA_LAKE_DATABRICKS; | ||
| import static io.trino.tests.product.TestGroups.DELTA_LAKE_EXCLUDE_113; | ||
| import static io.trino.tests.product.TestGroups.PROFILE_SPECIFIC_TESTS; | ||
| import static io.trino.tests.product.deltalake.TransactionLogAssertions.assertLastEntryIsCheckpointed; | ||
| import static io.trino.tests.product.deltalake.TransactionLogAssertions.assertTransactionLogVersion; | ||
|
|
@@ -226,7 +227,8 @@ public void testReplaceTableWithSchemaChange() | |
| } | ||
| } | ||
|
|
||
| @Test(groups = {DELTA_LAKE_DATABRICKS, PROFILE_SPECIFIC_TESTS}) | ||
| // Databricks 11.3 doesn't create a checkpoint file at 'CREATE OR REPLACE TABLE' statement | ||
| @Test(groups = {DELTA_LAKE_DATABRICKS, DELTA_LAKE_EXCLUDE_113, PROFILE_SPECIFIC_TESTS}) | ||
|
Comment on lines
230
to
231
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But that doesn't mean we should exclude the test, do it?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What we can do in 11.3 is verifying a checkpoint file wasn't created in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can CREATE OR REPLACE TABLE create a checkpoint in 11.3? Note that the test specificially wants to test the scenario when checkpoint changes the schema
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, I couldn't find a way to create a checkpoint using the statement, such options, alternative procedures or something in 11.3. |
||
| @Flaky(issue = DATABRICKS_COMMUNICATION_FAILURE_ISSUE, match = DATABRICKS_COMMUNICATION_FAILURE_MATCH) | ||
| public void testReplaceTableWithSchemaChangeOnCheckpoint() | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this two entries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's under
excludesection. These two entries are required to ignore hdp3 always and then enable another one when the secret exists in my understanding.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nineinchnick @hashhar please review the ci.yml changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Note it adds quite a lot of time to the total CI runtime:

Do we need to test all LTSes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've brought up EOLing the tests for version 7.3. Maybe it's time, though DB is supporting it through March