Skip to content
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

Fix all tests and squash into one #9

Merged
merged 588 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
588 commits
Select commit Hold shift + click to select a range
ddf3684
Remove unused methods
martint Nov 17, 2023
a27e5af
Migrate to AssertJ
martint Nov 17, 2023
031bd9f
Migrate tests to JUnit
martint Nov 17, 2023
3a85001
Remove support for pre-Puffin Iceberg stats
findepi Nov 17, 2023
185d033
Update some occurrences of "Presto" in tests
findepi Nov 17, 2023
3a57cfa
Remove deprecated Hive internal Column constructor
findepi Nov 17, 2023
b060fff
Remove flaky assertion in SQL Server testCreateTableAsSelectWriteBulk…
ebyhr Nov 20, 2023
0ef6ebc
Change property from max_writer_tasks_count to max_writer_task_count
Nov 17, 2023
14eb9d4
Upgrade airlift to 239
wendigo Nov 19, 2023
142cc78
Refactor RunLengthEncodedBlock hash combination logic
pettyjamesm Nov 15, 2023
0d2dc48
Catch all "not found" exceptions
findepi Nov 9, 2023
9c269e1
Fix loop index range in CombineHashFunction
pettyjamesm Nov 20, 2023
add33e2
Improve docs for MERGE
mosabua Nov 11, 2023
bb61e14
Convert more docs to markdown source
mosabua Nov 16, 2023
064f012
Update s3mock-testcontainers to 3.2.0
wendigo Nov 17, 2023
ed54241
Improve doc for Window functions
weiatwork Aug 3, 2023
44e9876
Remove redundant analyzeColumns from IcebergTableHandle
findepi Nov 20, 2023
eeda7cd
Further normalize Iceberg handle for getTableStatistics cache
findepi Nov 20, 2023
50221eb
Prevent calls to JSON-serialization-only methods
findepi Nov 20, 2023
8354918
Move testNonDeltaTablesCannotBeAccessed in Delta Lake
ebyhr Nov 21, 2023
f7dc99f
Fix formatting
sopel39 Nov 20, 2023
b99ef18
Simplify NodeRepresentation#getEstimates
sopel39 Nov 17, 2023
8897407
Prevent ValuesStatsRule from causing planning failures
sopel39 Nov 20, 2023
173087c
Remove try catch around DeterminePartitionCount stats estimation
sopel39 Nov 20, 2023
564bf72
Always collect statistics at the end of planning
sopel39 Nov 17, 2023
6fd542d
Change benchto-driver version to 0.26
Nov 21, 2023
ae40d12
Prevent duplicates in TypeProvider
sopel39 Nov 21, 2023
fb9b64e
Remove redundant set operation from information_schema.tables
findepi Nov 20, 2023
9d8fbbb
Unify and supplement short-circuiting in MetadataManager
findepi Nov 20, 2023
1c833bd
Resolve potential duplicates when listing relations in Hive
findepi Nov 20, 2023
ee23d6d
Use enhanced instanceof
findepi Nov 20, 2023
79ae389
Improve list assertions for list.contains
findepi Nov 20, 2023
ab9871a
Improve map assertions for map.containsKey
findepi Nov 20, 2023
ccf6b62
Improve map assertions for map entries
findepi Nov 20, 2023
b4d1517
Simplify MetadataManager::getMaterializedView
kokosing Nov 21, 2023
0fa001b
Downgrade Oracle JDBC driver to LTS 19.21.0.0
wendigo Nov 21, 2023
deb8ae0
Use Storage write API in BigQuery connector
ebyhr Sep 2, 2023
9d3f564
Fix TestShardOrganizer.testShardOrganizerInProgress flakiness
findepi Nov 21, 2023
f2746d6
Change type of ConnectorTableFunction binding in HiveModule
homar Nov 21, 2023
8b4e6ef
Fix lack of valid class loader for TableChangesSplitProcessor
homar Nov 21, 2023
19327e9
Fix lack of valid class loader for TableChangesProcessorProvider
homar Nov 21, 2023
83ab1e1
Fix listing views in Delta with Glue
findinpath Nov 17, 2023
98f82c2
empty
findinpath Nov 21, 2023
c2fb0c6
Change latest connector test to smoke test in MariaDB
ebyhr Nov 17, 2023
ecc95ea
Flush partitioned page builders more eagerly
pettyjamesm Nov 15, 2023
cb685ff
Track dictionary ids size when partitioning
pettyjamesm Nov 15, 2023
ddae2ec
Limit RLE to direct expansion when partitioning
pettyjamesm Nov 15, 2023
0ea303b
Allow specifying custom JDK version for docker image build
wendigo Nov 22, 2023
4f7782a
Fix invalid boolean expression in ScalarFunctionAdapter.adaptParameter
dain Nov 21, 2023
9626ec9
Fix typos in SQL routine example docs
charlesjmorgan Nov 22, 2023
d3a8324
Update testcontainers to 1.19.3
wendigo Nov 17, 2023
39b0449
Close taskSource when all task partitions complete
losipiuk Nov 21, 2023
32dcd2b
Properly finish stage on noMorePartitions signal
losipiuk Nov 21, 2023
44be8f8
Code cleanup
findepi Nov 22, 2023
dbf9d4b
Remove CachingJdbcClient overload
findepi Nov 22, 2023
03c566d
By default test defaults in TestCachingJdbcClient
findepi Nov 22, 2023
ae57465
Construct CachingJdbcClient using builder and config in test
findepi Nov 22, 2023
54948d9
Remove default CachingJdbcClient in test
findepi Nov 22, 2023
4bac759
Remove unnecessary logic from CachingJdbcClient
findepi Nov 22, 2023
288d4e6
Allow caching stats in JDBC but not metadata
findepi Nov 22, 2023
8137b67
Make testSpecificSchemaAndTableCaches faster
findepi Nov 22, 2023
3ddc702
Import time units statically
findepi Nov 22, 2023
193a8ab
Respect hive.metastore-stats-cache-ttl is explicitly set
findepi Nov 22, 2023
26b6d69
Move getColumnIndexStore to TrinoColumnIndexStore
raunaqmorarka Nov 9, 2023
fea2b9a
Remove testReadMetadataWithRelationsConcurrentModifications test
findepi Nov 23, 2023
c4c510c
Unimplement DirectExchangeBuffer for TASK retries
findepi Nov 21, 2023
766f7b2
Use switch expression
findepi Nov 21, 2023
4cb3072
Fix ArrayIndexOutOfBoundsException when statistics are ignored
jinyangli34 Nov 15, 2023
257c8ad
Update TableFunctionProcessorProvider.getDataProcessor to include Con…
tbaeg Nov 16, 2023
93c0040
Add support for FILTER clause in LISTAGG
martint Nov 23, 2023
ee27de4
Fix incorrect comparison for negative zero
martint Nov 22, 2023
08baad3
Fix failure from reading parquet column index for INT96
raunaqmorarka Nov 23, 2023
84539f3
Test Iceberg information_schema.tables cost with Glue
findepi Nov 23, 2023
faa6054
Add getRelationTypes for listing relations with their types
findepi Nov 20, 2023
3d0ee03
Implement getRelationTypes for Hive
findepi Nov 20, 2023
51c04c4
Implement getRelationTypes for Iceberg
findepi Nov 23, 2023
d32454f
Rename test class to match tested class name
findepi Nov 23, 2023
12065f8
Move a comment to its right place
ksobolew Nov 24, 2023
ddb4f47
Add docs for JDBC metadata caching props
mosabua Nov 23, 2023
ba8cde1
Improve grammar in JDBC config table
mosabua Nov 24, 2023
6c369ef
Add missing `@Test` annotations
findepi Nov 24, 2023
0a77e6c
Remove usage of attribute utility methods
electrum Nov 15, 2023
0826e17
Remove extra metastore calls in HudiSplitManager
electrum Nov 15, 2023
479308c
Remove debug logging in tests for Hive RetryDriver
electrum Nov 16, 2023
2745dad
Reduce startup logging for tests
electrum Nov 16, 2023
b7f0383
Always initialize logging in HiveQueryRunner
electrum Nov 17, 2023
d9e98b2
Add tracing for S3 file system
electrum Nov 17, 2023
7bbf6b4
Use native S3 for Hive S3 access operations test
electrum Nov 17, 2023
cfce507
Remove unused test dependencies for file system modules
electrum Nov 17, 2023
728714a
Add tracing for Azure file system
electrum Nov 17, 2023
f62c23d
Add tracing for GCS file system
electrum Nov 17, 2023
8bb2daa
Move AWS classes used for Glue metastore
electrum Nov 18, 2023
eacbd08
Remove deprecated method in InvocationConvention
electrum Nov 18, 2023
e9fd236
Inline unnecessary checkArgument methods
electrum Nov 18, 2023
2e590ea
Disable Error Prone DoNotCallSuggester
electrum Nov 18, 2023
123757c
Remove unused parameters from QueryRewriteException
electrum Nov 18, 2023
4b48a59
Rename exception classes to end in Exception
electrum Nov 18, 2023
18111cb
Add @FormatString and enforce AnnotateFormatMethod
electrum Nov 19, 2023
07d85f2
Fix warnings in TestHttpEventListener
electrum Nov 19, 2023
c59056c
Disable RethrowReflectiveOperationExceptionAsLinkageError
electrum Nov 20, 2023
b7a4fc2
Fix and enforce UnicodeEscape
electrum Nov 21, 2023
d4e3d73
Fix and enforce UnnecessaryParentheses
electrum Nov 21, 2023
6fbafb1
Remove useless POM comments
electrum Nov 25, 2023
e2f94aa
Move Hadoop dependency for hive-formats to test scope
electrum Nov 25, 2023
2a34069
Turn off bootstrap logging in TestHttpEventListener
electrum Nov 26, 2023
e45ef19
Add docs for array_join(x, delimiter)
zivali Nov 26, 2023
b21637f
Add support for DELETE statement in BigQuery
ebyhr Oct 6, 2022
18e1a79
Fix TestMySqlTypeMapping.testTimeFromMySql
ebyhr Nov 27, 2023
e32dec4
Remove dependency on trino-main from TestConstraintExtractor
kasiafi Nov 24, 2023
c3b5c2e
Generalize ConstraintExtractor to use arbitrary ColumnHandle
kasiafi Nov 22, 2023
577f2cd
Move ConstraintExtractor to plugin-toolkit
kasiafi Nov 24, 2023
d0baa04
Generalize ConstraintExtractor to handle TimestempWithTimezoneType of…
kasiafi Nov 22, 2023
69759e6
Add UTC-based optimizations in DeltaLakeMetadata
kasiafi Nov 22, 2023
b2efce7
Partial revert of increase split scheduling config
Dith3r Nov 23, 2023
95e8126
Remove duplicated initialization statement for `nullCount`
findinpath Nov 24, 2023
f6f7646
Prune unused stats columns when reading Delta checkpoint
findinpath Nov 21, 2023
76320c5
Update AWS SDK v1 to 1.12.595
wendigo Nov 24, 2023
e997560
Upgrade AWS SK v2 to 2.21.29
wendigo Nov 24, 2023
4bd319b
Update redshift-jdbc to 2.1.0.23
wendigo Nov 24, 2023
0df9bd9
Upate flyway to 10.1.0
wendigo Nov 24, 2023
11d79f0
Update arrow to 14.0.1
wendigo Nov 24, 2023
b6efa84
Update commons-lang3 to 3.14.0
wendigo Nov 24, 2023
997c047
Update commons-compress to 1.25.0
wendigo Nov 24, 2023
1d25ebf
Update byte-buddy to 1.14.10
wendigo Nov 24, 2023
c39e94e
Update postgresql to 42.7.0
wendigo Nov 24, 2023
586bb84
Update jetbrains annotations to 24.1.0
wendigo Nov 24, 2023
461f87d
Upgrade swagger to 2.2.19
wendigo Nov 24, 2023
de0f1c1
Upgrade jedis to 5.1.0
wendigo Nov 24, 2023
a878d37
Update confluent platform to 7.5.1 and wire schema to 4.8.0
wendigo Nov 24, 2023
62b0372
Update metrics-core to 4.2.22
wendigo Nov 24, 2023
43c79da
Update exec-maven-plugin to 3.1.1
wendigo Nov 24, 2023
fc39028
Update takari-lifecycle-plugin to 2.1.2
wendigo Nov 24, 2023
0570702
Correct secret usage with dynamic catalogs
mosabua Nov 23, 2023
b825b96
Handle S3 paths where bucket name contains "dot digit"
findepi Nov 27, 2023
ca96069
Convert left correlated join to inner join during transformation
sopel39 Nov 27, 2023
1378fbe
Add or update code comments in EventDrivenFaultTolerantQueryScheduler
findepi Nov 24, 2023
56323f7
Fix diststyle check in redshift test to include AUTO(KEY) kind
anusudarsan Nov 27, 2023
73e9775
Remove misleading header in Iceberg docs
mosabua Nov 21, 2023
db8aa6b
Fix typo in pom.xml
ebyhr Nov 28, 2023
8771e14
Fix flaky TestIcebergFileMetastoreCreateTableFailure
ebyhr Nov 28, 2023
282be53
Use CassandraQueryWaitStrategy in CassandraServer
ebyhr Nov 28, 2023
6758b79
Fix Javadoc for file system listDirectories
electrum Nov 27, 2023
fc37834
Add clarifying comment to S3 trailing slash test
electrum Nov 27, 2023
8960933
Flip node role logging in DistributedQueryRunner
electrum Nov 27, 2023
8a281ea
Cleanup logging for Hadoop containers
electrum Nov 27, 2023
38a5e26
Make JUnit configuration parameters work in IDEA
electrum Nov 27, 2023
19bd82c
Fix static class references for ClassPath
electrum Nov 26, 2023
230c185
Fix grammar for GCS error messages
electrum Nov 26, 2023
1ff1e01
Fix large writes for GCS
electrum Nov 26, 2023
7e0b8fe
Filter GCS objects that end in slash when listing files
electrum Nov 27, 2023
4a0294c
Use native GCS for Iceberg and Delta Lake tests
electrum Nov 26, 2023
f2b97e5
Disable compaction in Raptor connector test
ebyhr Nov 17, 2023
e7627a1
Remove HiveMetastoreDecorator and simplify metastore creation
dain Nov 18, 2023
8381a93
Implement missing overrides in IcebergPageSource
raunaqmorarka Nov 28, 2023
a66d623
Implement missing overrides in DeltaLakePageSource
raunaqmorarka Nov 28, 2023
39069fe
Implement missing overrides in HivePageSource
raunaqmorarka Nov 28, 2023
1a89f5e
Implement missing overrides in HudiPageSource
raunaqmorarka Nov 28, 2023
44767eb
Fix lack of test timeout
findepi Nov 27, 2023
de26c1e
Move Assert util to testing
findepi Nov 27, 2023
891ad8b
Fix TestEvictableCache.testLoadFailure flakiness
findepi Nov 27, 2023
2fbbd41
Run BigQuery connector test concurrently
ebyhr Nov 28, 2023
5d40483
Close BigQueryWriteClient in BigQueryPageSink
ebyhr Nov 28, 2023
154e994
Rename method to clarify scope
hashhar Oct 10, 2023
d876e9d
Verify aggregation pushdown isn't affected by column name length limits
hashhar Sep 10, 2023
5c66b8b
Introduce JdbcClient#getMaxColumnNameLength
hashhar Sep 10, 2023
5ad2c44
Allow having different column length limits per connector
hashhar Oct 11, 2023
1c17c95
Handle edge cases in createSyntheticJoinProjectionColumn
hashhar Oct 11, 2023
21c6dcb
Apply generated column name truncation to all affected connectors
hashhar Oct 13, 2023
5b092b1
Fix timestamp precision in Iceberg testTableChangesFunction
findepi Nov 24, 2023
8f0fe79
Add AssignmentResult.isEmpty()
losipiuk Nov 26, 2023
e506088
Add return type for EventDrivenFaultTolerantQueryScheduler.EventListener
losipiuk Nov 25, 2023
21a94dc
Add intermediate methods to EventListener
losipiuk Nov 25, 2023
dd1a0bc
Introduce constant
losipiuk Nov 26, 2023
91e99e2
Add diagnostics for stuck FTE scheduler
losipiuk Nov 23, 2023
100b453
Extend diagnostics for stuck FTE on EXCEEDED_TIME_LIMIT
losipiuk Nov 26, 2023
01595bd
Enable debug logging for fault tolerant execution in tests
losipiuk Nov 28, 2023
c77bd93
Move a paragraph slightly higher in FBAC docs
ksobolew Nov 22, 2023
95482f7
Emphasize and clarify behavior when there are no FBAC schema rules
ksobolew Nov 22, 2023
aceb19e
Remove redundant ORDER BY in INSERT queries
miniway Nov 27, 2023
01acd18
Don't set materialized view owner for IcebergGlueCatalog for system s…
homar Nov 8, 2023
4e17461
Avoid large DF domains unions during add partition
Dith3r Nov 24, 2023
f75d149
Test materialized view metadata listing with Glue
findepi Nov 29, 2023
dc42520
Inline logic in MaterializedViewSystemTable
findepi Nov 29, 2023
9a15a56
Use column names in MaterializedViewSystemTable
findepi Nov 29, 2023
5311b4e
Rename constant for readability
findepi Nov 29, 2023
f113c81
Fix code style
findepi Nov 29, 2023
ff3704c
Remove useless `@Flaky` from JUnit tests
findepi Nov 29, 2023
7948f0a
Fix TestingConnectorSplit equality
findepi Nov 29, 2023
b3bee8e
Remove constant field from TestingConnectorSplit
findepi Nov 29, 2023
fade046
Seal SplitWeight API
findepi Nov 29, 2023
f94416d
Remove redundant else
findepi Nov 29, 2023
4345db9
Fix indentation
findepi Nov 29, 2023
737a7a8
Fix test groups for some Hive ACID product tests
findepi Nov 29, 2023
8b215c2
Annotate more TestHiveTransactionalTable methods for retries
findepi Nov 29, 2023
2f57226
Improve SQL routine docs
mosabua Nov 23, 2023
e5da797
Add docs for hiding MV storage table
mosabua Nov 29, 2023
8a354b2
Improve table function docs
mosabua Nov 23, 2023
adf80eb
Link to custom types and functions
mosabua Nov 21, 2023
3f24cf9
Clarify json_path requirement
mosabua Nov 20, 2023
bf0ccbe
Improve ordering of SQL support overview
mosabua Nov 20, 2023
d8adf57
Change to exact numerics data type term
mosabua Nov 20, 2023
8010d6d
Fix vertical alignment for anchor links
mosabua Nov 20, 2023
504b906
Add Trino 434 release notes
mosabua Nov 15, 2023
aa431c7
[maven-release-plugin] prepare release 434
martint Nov 30, 2023
24ffbaa
[maven-release-plugin] prepare for next development iteration
martint Nov 30, 2023
c3cac47
Support bytes reading for DataTable V4 in Pinot
xiangfu0 Nov 28, 2023
6bf970b
Fix test by using metadata entry consistent with the add entries
findinpath Nov 28, 2023
951bd4b
Add import for QueryAssert.Row
findinpath Nov 27, 2023
6860924
Write `partitionValues_parsed` field for `add` entries in the checkpoint
findinpath Nov 7, 2023
312980d
Test partition pruning in CheckpointEntryIterator
findinpath Nov 20, 2023
585cd4f
Seal TableScanNode API
findepi Nov 29, 2023
02ce7e6
Enhance description for `delta.checkpoint-filtering.enabled`
findinpath Nov 30, 2023
7c28ebb
Add shutdown to EventListener
dominikzalewski Nov 30, 2023
ad659bf
Fix Hive properties table test
dain Nov 30, 2023
f84f9e8
Rename presto_version table property to trino_version
dain Nov 30, 2023
d3c8396
Rename presto_query_id table property to trino_query_id
dain Nov 30, 2023
145c7d3
Rename RCFile presto.writer.version property to trino.writer.version
dain Nov 30, 2023
86c0c19
Rename presto to trino in methods names and comments
dain Nov 30, 2023
62cef1a
Removed support for creating table with location in DeltaLake
marcinsbd Nov 7, 2023
78ccc2d
Implement NOT, IS NULL, NOT IS NULL pushdown in Ignite connector
chenjian2664 Oct 19, 2023
1c5e5eb
Allow differentiating materialized views from tables efficiently
findepi Nov 29, 2023
89a703e
Make S3FileSystemFactory use configured AWS access keys for STS calls
grantatspothero Nov 30, 2023
e0ad7bd
Fix FaultTolerantPartitioningScheme obtaining logic
losipiuk Nov 30, 2023
3801f54
Add sanity check
losipiuk Dec 1, 2023
297a41b
Extend set of test FTE config parameters
losipiuk Dec 1, 2023
d8ddf9d
Test merge with cost based partition count determination
losipiuk Dec 1, 2023
10f3f3b
Make method private
losipiuk Dec 1, 2023
a302185
Make mapping of Trino schema to BigQuery dataset more explicit
nineinchnick Nov 22, 2023
1b15b1d
Make injectable interface public
nineinchnick Nov 22, 2023
5bd784e
Add queryState to debug info in EventDrivenFaultTolerantQueryScheduler
losipiuk Dec 1, 2023
bcddbcf
Remove outdated SPI revapi exclusions
electrum Nov 30, 2023
5667b1e
Fix warnings in HandleResolver
electrum Nov 30, 2023
9836661
Remove deprecated duplicatePluginClassLoader
electrum Nov 30, 2023
b3cb26b
Fix removal of stats files in Iceberg orpan file cleanup
electrum Nov 30, 2023
dd80510
Remove trino-benchmarks module
dain Dec 2, 2023
9da2386
Convert TestingThriftHiveMetastoreBuilder to TrinoFileSystem
dain Nov 30, 2023
62acd1b
Move already created check inside of metastore implementations
dain Nov 30, 2023
3c498b7
Do not fail stage after already done
losipiuk Dec 2, 2023
717c223
Update Maven to 3.9.6
wendigo Dec 1, 2023
19f9677
Fix incorrect result when reading dates during calendar switch in SQL…
ebyhr Dec 4, 2023
82123da
Upgrade AWS SDK v1 to 1.12.604
wendigo Dec 4, 2023
26f7b44
Upgrade nimbus-jose-jwt to 9.37.2
wendigo Dec 4, 2023
36b07c5
Upgrade oauth2-oidc-sdk to 11.7
wendigo Dec 4, 2023
b434961
Upgrade grpc-bom to 1.59.1
wendigo Dec 4, 2023
76d2d34
Update maven-model to 3.9.6
wendigo Dec 4, 2023
c2b72e1
Upgrade jdbi to 3.42.0
wendigo Dec 4, 2023
6f74994
Upgrade AWS SDK v2 to 2.21.37
wendigo Dec 4, 2023
37aaff0
Update mariadb-java-client to 3.3.1
wendigo Dec 4, 2023
c4ff5fb
Add Snowflake JDBC Connector
yuuteng Dec 22, 2021
4b233b0
Merge branch 'snowflake' into bloomberg-snowflake
dprophet Dec 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 4 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Verify checked out commits and setup Java"
inputs:
java-version:
description: "Java version to setup"
default: 17
default: 21
cache:
description: "Cache Maven repo (true/false/restore)"
default: true
Expand Down Expand Up @@ -50,7 +50,9 @@ runs:
if: ${{ format('{0}', inputs.cache) == 'true' }}
uses: actions/cache@v3
with:
path: ~/.m2/repository
path: |
~/.m2/repository
/tmp/pt_java_downloads
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
Expand Down
52 changes: 38 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ env:
# used by actions/cache to retry the download after this time: https://github.com/actions/cache/blob/main/workarounds.md#cache-segment-restore-timeout
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
CI_SKIP_SECRETS_PRESENCE_CHECKS: ${{ secrets.CI_SKIP_SECRETS_PRESENCE_CHECKS }}
PTL_TMP_DOWNLOAD_PATH: /tmp/pt_java_downloads

# Cancel previous PR builds.
concurrency:
Expand All @@ -56,7 +57,7 @@ jobs:
fail-fast: false
matrix:
java-version:
- 17
- 17 # Keep testing on JDK 17 to ensure basic backward compatibility
- 21
timeout-minutes: 45
steps:
Expand Down Expand Up @@ -86,7 +87,7 @@ jobs:

artifact-checks:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -309,6 +310,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TRINO_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TRINO_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ vars.TRINO_AWS_REGION }}
S3_BUCKET: ${{ vars.TRINO_S3_BUCKET }}
S3_BUCKET_ENDPOINT: "https://s3.${{ vars.TRINO_AWS_REGION }}.amazonaws.com"
run: |
Expand All @@ -329,9 +331,7 @@ jobs:
S3_BUCKET_ENDPOINT: "s3.${{ vars.TRINO_AWS_REGION }}.amazonaws.com"
run: |
if [ "${AWS_ACCESS_KEY_ID}" != "" ]; then
$MAVEN test ${MAVEN_TEST} -pl :trino-hive -P aws-tests \
-Ds3.bucket="${S3_BUCKET}" \
-Ds3.bucket-endpoint="${S3_BUCKET_ENDPOINT}"
$MAVEN test ${MAVEN_TEST} -pl :trino-hive -P aws-tests
fi
- name: Run Hive Azure ABFS Access Key Tests
if: matrix.config != 'config-empty' # Hive 1.x does not support Azure storage
Expand Down Expand Up @@ -458,6 +458,7 @@ jobs:
!:trino-faulttolerant-tests,
!:trino-filesystem,
!:trino-filesystem-azure,
!:trino-filesystem-gcs,
!:trino-filesystem-manager,
!:trino-filesystem-s3,
!:trino-google-sheets,
Expand Down Expand Up @@ -571,12 +572,13 @@ jobs:
- lib/trino-filesystem-s3
- lib/trino-hdfs
- { modules: core/trino-main }
- { modules: core/trino-main, jdk: 21 }
- { modules: lib/trino-filesystem-s3, profile: cloud-tests }
- { modules: lib/trino-filesystem-azure, profile: cloud-tests }
- { modules: lib/trino-hdfs, profile: cloud-tests }
- { modules: lib/trino-filesystem-gcs, profile: cloud-tests }
- { modules: plugin/trino-accumulo }
- { modules: plugin/trino-bigquery }
- { modules: plugin/trino-bigquery, profile: cloud-tests-arrow }
- { modules: plugin/trino-bigquery, profile: cloud-tests-arrow-and-fte }
- { modules: plugin/trino-cassandra }
- { modules: plugin/trino-clickhouse }
- { modules: plugin/trino-delta-lake }
Expand Down Expand Up @@ -642,8 +644,8 @@ jobs:
- uses: ./.github/actions/setup
with:
cache: restore
java-version: ${{ matrix.jdk != '' && matrix.jdk || '17' }}
cleanup-node: ${{ format('{0}', matrix.modules == 'plugin/trino-singlestore') }}
java-version: ${{ matrix.jdk != '' && matrix.jdk || '21' }}
- name: Maven Install
run: |
export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
Expand All @@ -653,17 +655,31 @@ jobs:
matrix.modules != 'plugin/trino-singlestore'
&& ! (contains(matrix.modules, 'trino-delta-lake') && contains(matrix.profile, 'cloud-tests'))
&& ! (contains(matrix.modules, 'trino-iceberg') && contains(matrix.profile, 'cloud-tests'))
&& ! (contains(matrix.modules, 'trino-bigquery') && contains(matrix.profile, 'cloud-tests-arrow'))
&& ! (contains(matrix.modules, 'trino-bigquery') && contains(matrix.profile, 'cloud-tests-arrow-and-fte'))
&& ! (contains(matrix.modules, 'trino-redshift') && contains(matrix.profile, 'cloud-tests'))
&& ! (contains(matrix.modules, 'trino-redshift') && contains(matrix.profile, 'fte-tests'))
&& ! (contains(matrix.modules, 'trino-filesystem-s3') && contains(matrix.profile, 'cloud-tests'))
&& ! (contains(matrix.modules, 'trino-filesystem-azure') && contains(matrix.profile, 'cloud-tests'))
&& ! (contains(matrix.modules, 'trino-hdfs') && contains(matrix.profile, 'cloud-tests'))
&& ! (contains(matrix.modules, 'trino-filesystem-gcs') && contains(matrix.profile, 'cloud-tests'))
run: $MAVEN test ${MAVEN_TEST} -pl ${{ matrix.modules }} ${{ matrix.profile != '' && format('-P {0}', matrix.profile) || '' }}
# Additional tests for selected modules
- name: HDFS file system cache isolated JVM tests
if: contains(matrix.modules, 'trino-hdfs')
run: |
$MAVEN test ${MAVEN_TEST} -pl :trino-hdfs -P test-isolated-jvm-suites
- name: Hadoop FileSystem Cloud Tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TRINO_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TRINO_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ vars.TRINO_AWS_REGION }}
S3_BUCKET: ${{ vars.TRINO_S3_BUCKET }}
S3_BUCKET_ENDPOINT: "s3.${{ vars.TRINO_AWS_REGION }}.amazonaws.com"
if: >-
contains(matrix.modules, 'trino-hdfs') && contains(matrix.profile, 'cloud-tests') &&
(env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.AWS_ACCESS_KEY_ID != '' || env.AWS_SECRET_ACCESS_KEY != '')
run: |
$MAVEN test ${MAVEN_TEST} -pl :trino-hdfs -P cloud-tests
- name: S3 FileSystem Cloud Tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TRINO_AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -701,6 +717,14 @@ jobs:
(env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.ABFS_BLOB_ACCOUNT != '' || env.ABFS_BLOB_ACCESS_KEY != '' || env.ABFS_FLAT_ACCOUNT != '' || env.ABFS_FLAT_ACCESS_KEY != '' || env.ABFS_ACCOUNT != '' || env.ABFS_ACCESS_KEY != '')
run: |
$MAVEN test ${MAVEN_TEST} -pl ${{ matrix.modules }} ${{ format('-P {0}', matrix.profile) }}
- name: GCS FileSystem Cloud Tests
env:
GCP_CREDENTIALS_KEY: ${{ secrets.GCP_CREDENTIALS_KEY }}
if: >-
contains(matrix.modules, 'trino-filesystem-gcs') && contains(matrix.profile, 'cloud-tests') &&
(env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.GCP_CREDENTIALS_KEY != '')
run: |
$MAVEN test ${MAVEN_TEST} -pl ${{ matrix.modules }} ${{ format('-P {0}', matrix.profile) }}
- name: Cloud Delta Lake Tests
# Cloud tests are separate because they are time intensive, requiring cross-cloud network communication
env:
Expand Down Expand Up @@ -734,25 +758,25 @@ jobs:
env:
BIGQUERY_CREDENTIALS_KEY: ${{ secrets.BIGQUERY_CREDENTIALS_KEY }}
GCP_STORAGE_BUCKET: ${{ vars.GCP_STORAGE_BUCKET }}
if: matrix.modules == 'plugin/trino-bigquery' && !contains(matrix.profile, 'cloud-tests-arrow') && (env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.BIGQUERY_CREDENTIALS_KEY != '')
if: matrix.modules == 'plugin/trino-bigquery' && !contains(matrix.profile, 'cloud-tests-arrow-and-fte') && (env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.BIGQUERY_CREDENTIALS_KEY != '')
run: |
$MAVEN test ${MAVEN_TEST} -pl :trino-bigquery -Pcloud-tests \
-Dbigquery.credentials-key="${BIGQUERY_CREDENTIALS_KEY}" \
-Dtesting.gcp-storage-bucket="${GCP_STORAGE_BUCKET}" \
-Dtesting.alternate-bq-project-id=bigquery-cicd-alternate
- name: Cloud BigQuery Arrow Serialization Tests
- name: Cloud BigQuery Arrow and FTE Tests
env:
BIGQUERY_CREDENTIALS_KEY: ${{ secrets.BIGQUERY_CREDENTIALS_KEY }}
GCP_STORAGE_BUCKET: ${{ vars.GCP_STORAGE_BUCKET }}
if: matrix.modules == 'plugin/trino-bigquery' && contains(matrix.profile, 'cloud-tests-arrow') && (env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.BIGQUERY_CREDENTIALS_KEY != '')
if: matrix.modules == 'plugin/trino-bigquery' && contains(matrix.profile, 'cloud-tests-arrow-and-fte') && (env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.BIGQUERY_CREDENTIALS_KEY != '')
run: |
$MAVEN test ${MAVEN_TEST} -pl :trino-bigquery -Pcloud-tests-arrow \
$MAVEN test ${MAVEN_TEST} -pl :trino-bigquery -Pcloud-tests-arrow-and-fte \
-Dbigquery.credentials-key="${BIGQUERY_CREDENTIALS_KEY}" \
-Dtesting.gcp-storage-bucket="${GCP_STORAGE_BUCKET}"
- name: Cloud BigQuery Case Insensitive Mapping Tests
env:
BIGQUERY_CASE_INSENSITIVE_CREDENTIALS_KEY: ${{ secrets.BIGQUERY_CASE_INSENSITIVE_CREDENTIALS_KEY }}
if: matrix.modules == 'plugin/trino-bigquery' && !contains(matrix.profile, 'cloud-tests-arrow') && (env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.BIGQUERY_CASE_INSENSITIVE_CREDENTIALS_KEY != '')
if: matrix.modules == 'plugin/trino-bigquery' && !contains(matrix.profile, 'cloud-tests-arrow-and-fte') && (env.CI_SKIP_SECRETS_PRESENCE_CHECKS != '' || env.BIGQUERY_CASE_INSENSITIVE_CREDENTIALS_KEY != '')
run: |
$MAVEN test ${MAVEN_TEST} -pl :trino-bigquery -Pcloud-tests-case-insensitive-mapping -Dbigquery.credentials-key="${BIGQUERY_CASE_INSENSITIVE_CREDENTIALS_KEY}"
- name: Iceberg Cloud Tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # use same JDK distro as in Trino docker images
java-version: 17
java-version: 21
cache: 'maven'
- name: Configure Problem Matchers
run: |
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # use same JDK distro as in Trino docker images
java-version: 17
java-version: 21
cache: 'maven'
- name: Configure Problem Matchers
run: |
Expand Down
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.0
21.0
24 changes: 0 additions & 24 deletions .mvn/modernizer/violations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,36 +176,12 @@
<comment>SerDeInfo parameters map is nullable in Glue model, which is too easy to forget about. Prefer GlueToTrinoConverter.getSerDeInfoParameters</comment>
</violation>

<violation>
<name>org/apache/hadoop/mapred/JobConf."&lt;init&gt;":()V</name>
<version>1.1</version>
<comment>This constructor reads default configuration resource files implicitly. Prefer new JobConf(Configuration)</comment>
</violation>

<violation>
<name>org/apache/hadoop/mapred/JobConf."&lt;init&gt;":(Ljava/lang/Class;)V</name>
<version>1.1</version>
<comment>This constructor reads default configuration resource files implicitly. Prefer new JobConf(Configuration)</comment>
</violation>

<violation>
<name>org/apache/hadoop/conf/Configuration."&lt;init&gt;":()V</name>
<version>1.1</version>
<comment>Prefer ConfigurationInstantiator.newEmptyConfiguration() for two reasons: (1) loading default resources is unlikely desired and (2) ConfigurationInstantiator adds additional safety checks</comment>
</violation>

<violation>
<name>org/apache/hadoop/fs/FileSystem.close:()V</name>
<version>1.1</version>
<comment>Hadoop FileSystem instances are shared and should not be closed</comment>
</violation>

<violation>
<name>org/apache/hadoop/conf/Configuration."&lt;init&gt;":(Z)V</name>
<version>1.1</version>
<comment>Prefer ConfigurationInstantiator.newEmptyConfiguration()</comment>
</violation>

<violation>
<name>java/util/TimeZone.getTimeZone:(Ljava/lang/String;)Ljava/util/TimeZone;</name>
<version>1.8</version>
Expand Down
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
22 changes: 2 additions & 20 deletions client/trino-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.trino</groupId>
<artifactId>trino-root</artifactId>
<version>432-SNAPSHOT</version>
<version>435-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand All @@ -15,7 +15,7 @@
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
<project.build.targetJdk>8</project.build.targetJdk>
<main-class>io.trino.cli.Trino</main-class>
<dep.jline.version>3.24.0</dep.jline.version>
<dep.jline.version>3.24.1</dep.jline.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -157,24 +157,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<dependencies>
<!-- allow both JUnit and TestNG -->
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform</artifactId>
<version>${dep.plugin.surefire.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-testng</artifactId>
<version>${dep.plugin.surefire.version}</version>
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.toMap;
import static org.testng.Assert.assertEquals;
import static org.assertj.core.api.Assertions.assertThat;

public class TestAlignedTablePrinter
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public void testAlignedPrinting()
" bye | done | -15 \n" +
"(5 rows)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand All @@ -93,7 +93,7 @@ public void testHexPrintingInLists()
" [68 65 6c 6c 6f] \n" +
"(1 row)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand All @@ -116,7 +116,7 @@ public void testHexPrintingInMaps()
" {key2=68 65 6c 6c 6f, key=68 65 6c 6c 6f} \n" +
"(1 row)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand All @@ -139,7 +139,7 @@ public void testHexPrintingInMapKeys()
" {68 65 6c 6c 6f=world} \n" +
"(1 row)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand All @@ -162,7 +162,7 @@ public void testHexPrintingInNestedStructures()
" {key2={nested=68 65 6c 6c 6f}, key=[68 65 6c 6c 6f, NULL]} \n" +
"(1 row)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand All @@ -186,7 +186,7 @@ public void testAlignedPrintingOneRow()
" without wrapping | \n" +
"(1 row)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand All @@ -207,7 +207,7 @@ public void testAlignedPrintingNoRows()
"-------+------\n" +
"(0 rows)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand Down Expand Up @@ -239,7 +239,7 @@ public void testAlignedPrintingHex()
" cat | | dog \n" +
"(3 rows)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

@Test
Expand Down Expand Up @@ -272,7 +272,7 @@ public void testAlignedPrintingWideCharacters()
" bye | done | -15 \n" +
"(3 rows)\n";

assertEquals(writer.getBuffer().toString(), expected);
assertThat(writer.getBuffer().toString()).isEqualTo(expected);
}

static Column column(String name, String type)
Expand Down
Loading
Loading