Skip to content

Conversation

@Paarth002
Copy link
Contributor

What type of PR is this?

  • Improvement

What does this PR do / why is it needed ?

Add Athena Sql dialect, PCTs & SDTs

Paarth002 and others added 6 commits September 24, 2025 21:24
* Add Athena PCT, Sql dialect & SDT support (finos#4054)

* Add Athena PCT support (finos#4022)

* Athena PCT setup

* Update copyright

* Add athena jdbc driver and pct support

* Minor fixes

* Update athena driver jar path

* Remove AthenaUserNamePasswordAuthenticationStrategy

* Add Vault in AthenaTestConnectionIntegration

* Update athenaExtension.pure

* Update athena jdbc jar source

* Change athena driver scope to provided

* Add Athena PCT setup - change S3 bucket name (finos#4025)

* Athena PCT setup

* Update copyright

* Add athena jdbc driver and pct support

* Minor fixes

* Update athena driver jar path

* Remove AthenaUserNamePasswordAuthenticationStrategy

* Add Vault in AthenaTestConnectionIntegration

* Update athenaExtension.pure

* Update athena jdbc jar source

* Change athena driver scope to provided

* Update S3 bucket name

* Update build.yml

* Athena SDT changes

* Athena jdbc jar direct installation to .m2

* Add sql dialect functions for maths, aggregation, strings

* Add more sql dialect functions

* Switch to sql dialect flow for Athena

* Change S3 bucket name

* Athena Sql dialect changes

* Athena Sql dialect changes revert commented part in max.pure

* Athena Sql dialect changes remove duplicate function

* Add Athena Driver setup to github workflow

* Switch to Sql dialect flow for athena

* Update poms

---------

Co-authored-by: Sai Sriharsha Annepu <[email protected]>
Co-authored-by: vijaylather <[email protected]>

* Update build.yml

* Update build.yml

* Update workgroup default to primary (finos#4056)

* Add athena jdbc dependency to PCT (finos#4059)

* Change aws region to us-east-1 (finos#4060)

* Fix Athena SDTs + Change AWS region (finos#4063)

* Fix athena SDTs

* Change aws region to us-east-2

* Change athena schema to default (finos#4066)

* Fix Test_Relational_Athena_UnclassifiedFunctions_PCT & Test_Relational_Athena_VariantFunctions_PCT

* Fix PCT table column starting with '_'

* Athena Essential Functions PCT changes

* Fix Athena PCTs

* Change S3 bucket name

* Fix Athena sql dialect flow

* Fix PCT error messages

* Athena Essential Functions PCT changes and SDT change

* Fix Athena Grammar & Relational PCTs

* Fix Athena Relational PCTs

* pom version updates for athena modules

* Remove forkCount in athena PCT

---------

Co-authored-by: Sai Sriharsha Annepu <[email protected]>
Co-authored-by: vijaylather <[email protected]>
@Paarth002 Paarth002 requested a review from a team as a code owner September 24, 2025 21:34
@github-actions
Copy link

github-actions bot commented Sep 24, 2025

Test Results

  4 files   -   1 023    4 suites   - 1 023   1m 20s ⏱️ - 3h 52m 27s
22 tests  - 13 383  22 ✔️  - 13 217  0 💤  - 166  0 ±0 
22 runs   - 28 394  22 ✔️  - 28 228  0 💤  - 166  0 ±0 

Results for commit 3bd24e8. ± Comparison against base commit 45070d6.

♻️ This comment has been updated with latest results.

<ignoredUnusedDeclaredDependency>org.slf4j:slf4j-api</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
<ignoredUsedUndeclaredDependencies>
<ignoredUsedUndeclaredDependency>com.amazon.athena:AthenaJDBC42</ignoredUsedUndeclaredDependency>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>runtime</scope>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

let expr = {
| #TDS
colOneNum, Col_two_letter, _col_3Mix
colOneNum, Col_two_letter, col_3Mix
Copy link
Contributor

Choose a reason for hiding this comment

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

why should column name be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Athena does not support column names starting with '_'. So, changed the column name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed this change

</execution>
</executions>
</plugin>
<plugin>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comments as engine server pom file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

$types->at($x)->match([
d:meta::relational::metamodel::datatype::Date[1] | 'Date ' + $literalStr,
t:meta::relational::metamodel::datatype::Timestamp[1] | 'Timestamp ' + $literalStr,
t:meta::relational::metamodel::datatype::Timestamp[1] | if ($literalStr->matches('\'\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?\''),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use standard sql converter

),
sqlFunctionTest(
simpleFunctionCall('dateadd', [literal(%2014-12-04T15:22:23), literal(123), literal('MILLISECOND')]),
simpleFunctionCall('dateadd', [literal(%2014-12-04T15:22:23.000), literal(123), literal('MILLISECOND')]),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants