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 @@ -15,7 +15,6 @@

import com.google.common.base.Stopwatch;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import io.airlift.units.DataSize;
import io.trino.Session;
import io.trino.execution.QueryInfo;
Expand Down Expand Up @@ -204,23 +203,6 @@ protected Optional<DataMappingTestSetup> filterDataMappingSmokeTestData(DataMapp
return Optional.of(dataMappingTestSetup);
}

@Override
protected Optional<String> filterColumnNameTestData(String columnName)
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.

Do we have column name tests with none column mapping mode in product tests? I remember there's TestDeltaLakeColumnMappingMode#testSpecialCharacterColumnNamesWithColumnMappingMode for id and name mappings, but I'm not sure about existing none mapping tests.

As you know, we create tables and verify the result by ourselves in BaseDeltaLakeMinioConnectorTest, so it doesn't guarantee whether the column is accessible from Databricks or OSS Delta Lake.

Removing this override itself is fine.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I cannot find any. It would be good follow up I guess.

{
// TODO https://github.com/trinodb/trino/issues/11297: these should be cleanly rejected and filterColumnNameTestData() replaced with isColumnNameRejected()
Set<String> unsupportedColumnNames = ImmutableSet.of(
"atrailingspace ",
" aleadingspace",
"a,comma",
"a;semicolon",
"a space");
if (unsupportedColumnNames.contains(columnName)) {
return Optional.empty();
}

return Optional.of(columnName);
}

@Override
protected TestTable createTableWithDefaultColumns()
{
Expand Down