Repository navigation
🎉Destination-s3: added support for AWS Glue crawler - #11173
Eugene (etsybaev) merged 6 commits into
Conversation
|
/test connector=connectors/destination-s3 |
…-for-aws-glue-crawler
Oleksandr Sheheda (alexandr-shegeda)
left a comment
There was a problem hiding this comment.
LGTM. please reformat the code and update the related documentation
|
/test connector=connectors/destination-s3 |
|
/test connector=connectors/destination-s3 |
| // more details https://docs.aws.amazon.com/glue/latest/dg/crawler-s3-folder-table-partition.html | ||
| paths.add(streamName); | ||
| }else { | ||
| paths.add(NAME_TRANSFORMER.convertStreamName(streamName)); |
There was a problem hiding this comment.
Shouldn't we create a specific NamingConventionTransformer nameTransformer for S3 when instantiating the S3Destination?
It would be S3NameTransformer instead of a generic ExtendedNameTransformer:
That would allow us to specify what are the allowed characters in the bucket name/path such as = or other characters, no?
Non-allowed characters are then following the rule:
all special symbols transform to "_" symbol.
Here are some examples of how it's done in other connectors:
- Postgres:
- Snowflake:
- MongoDB:
- etc
Or at least, when we construct the consumer, we pass it to the factory:
- Redshift:
WDYT Liren Tu (@tuliren)?
There was a problem hiding this comment.
I agree. We should hide that complexity in a custom NameTransformer
There was a problem hiding this comment.
As far as I understood, this converter is used for creating a stream name only. A user wants to use some specific feature([AWS Glue crawler). That's why I removed any auto-replacement if "=" symbol is used
There was a problem hiding this comment.
Eugene (@etsybaev) the logic is sound, but we should encapsulate it into a S3NameTransformer
| // more details https://docs.aws.amazon.com/glue/latest/dg/crawler-s3-folder-table-partition.html | ||
| paths.add(streamName); | ||
| }else { | ||
| paths.add(NAME_TRANSFORMER.convertStreamName(streamName)); |
There was a problem hiding this comment.
I agree. We should hide that complexity in a custom NameTransformer
|
/test connector=connectors/destination-s3
|
|
/publish connector=connectors/destination-s3
|
What
A user wants to use the AWS Glue crawler feature, but currently, all special symbols transform to "_" symbol.
How
Updated logic to do not transform special symbols in stream name if user adds the "=" symbol in prefix.
Tested locally:

🚨 User Impact 🚨
No breaking changes expected
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/SUMMARY.mddocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampledocs/integrations/README.mdairbyte-integrations/builds.mdAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereUpdating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereConnector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplatesthen checking in your changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.