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

glue: Glue Tables / Glue Schemas (with regular expressions as 'patterns') are not properly linked #27758

Open
ttais2017 opened this issue Oct 30, 2023 · 3 comments
Labels
@aws-cdk/aws-glue Related to AWS Glue bug This issue is a bug. effort/medium Medium work item – several days of effort p2

Comments

@ttais2017
Copy link

Describe the bug

The created glue tables are not properly linked with the given glue schema. In the test-case, the glue schema contains patterns, which represent the allowed strings.

Schema used in AWS schema registry (with regular expressions/patterns):

image

Expected Behavior

The glue schema is properly associated (linked or refered) to the glue table being created.

Current Behavior

This is the glue table created with CDK:

image

clicking on "Edit Schema", the schema can be edited as simple schema (the regular expressions are removed):

image

EXPECTED: the schema can be changed (using a list box) with existing versions in aws glue schema.

For checking this functionality, I created a schema and a table (manually).

image

The behaviour of "edit schema" is this new dialog:

image

Reproduction Steps

see screenshots in Current Behaviour / Bug description

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.103.1 (build 3bb19ac)

Framework Version

No response

Node.js Version

9.5.1

OS

Windows

Language

Java

Language Version

No response

Other information

No response

@ttais2017 ttais2017 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 30, 2023
@github-actions github-actions bot added the @aws-cdk/aws-glue Related to AWS Glue label Oct 30, 2023
@khushail
Copy link
Contributor

Hi @ttais2017 , could you please share the code for reproduction. TIA.

@khushail khushail added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Oct 30, 2023
@ttais2017
Copy link
Author

ttais2017 commented Oct 31, 2023

Sure, here the mini project.

mini-project.zip

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Oct 31, 2023
@ttais2017
Copy link
Author

I tested my code again with a minor change: let's see the latest version:

image

So, the schema will be linked properly with the table.

Now a small comparison. at left side, the schema reference/link does not work properly. The right side, link the schema properly.

image

@pahud pahud added p2 effort/medium Medium work item – several days of effort labels Nov 30, 2023
@pahud pahud changed the title Glue Tables / Glue Schemas (with regular expressions as 'patterns') are not properly linked glue: Glue Tables / Glue Schemas (with regular expressions as 'patterns') are not properly linked Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-glue Related to AWS Glue bug This issue is a bug. effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

No branches or pull requests

3 participants