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

feat(redshift): column compression encodings and comments can now be customised #24177

Merged
merged 39 commits into from
Mar 8, 2023
Merged

feat(redshift): column compression encodings and comments can now be customised #24177

merged 39 commits into from
Mar 8, 2023

Conversation

Rizxcviii
Copy link
Contributor

@Rizxcviii Rizxcviii commented Feb 15, 2023

In accordance with #24165, I'm opening the same pull request as before. Not sure if my previous PR #23597 will automatically be "re-merged" in, but if not, then you can review this pull request

Will AGAIN close #22506


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

addition: adding ColumnEncoding into private folder
modification: bug accessing outside private folder
addition: test for chained statements
modification: removing duplicate code
@gitpod-io
Copy link

gitpod-io bot commented Feb 15, 2023

@github-actions github-actions bot added the repeat-contributor [Pilot] contributed between 3-5 PRs to the CDK label Feb 15, 2023
@mergify mergify bot dismissed TheRealAmazonKendra’s stale review February 21, 2023 15:31

Pull request has been modified.

@Rizxcviii
Copy link
Contributor Author

The tests failed with

RuntimeError: Cannot find module 'aws-sdk/clients/redshiftdata'

It's consistently failed, but I'm not sure why. I won't be available next week, but I'll run it through again when I get back.

full trace:

jsii.errors.JavaScriptError:
--
Error: Cannot find module 'aws-sdk/clients/redshiftdata'
Require stack:
- /tmp/jsii-kernel-5stNJk/node_modules/@aws-cdk/aws-redshift-alpha/lib/private/database-query-provider/redshift-data.js
- /tmp/jsii-kernel-5stNJk/node_modules/@aws-cdk/aws-redshift-alpha/lib/private/database-query-provider/privileges.js
- /tmp/jsii-kernel-5stNJk/node_modules/@aws-cdk/aws-redshift-alpha/lib/private/database-query-provider/index.js
- /tmp/jsii-kernel-5stNJk/node_modules/@aws-cdk/aws-redshift-alpha/lib/table.js
- /tmp/jsii-kernel-5stNJk/node_modules/@aws-cdk/aws-redshift-alpha/lib/index.js
- /tmp/jsii-kernel-5stNJk
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object.<anonymous> (/tmp/jsii-kernel-5stNJk/node_modules/@aws-cdk/aws-redshift-alpha/lib/private/database-query-provider/redshift-data.js:5:22)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)

Not sure if this is the reason, but when I'm working on other features, I'm being told to upgrade to SDK version 3? Perhaps the SDK version 3 is installed on the test pipeline, but not SDK version 2?

@TheRealAmazonKendra
Copy link
Contributor

We are not yet on SDK v3 due to other dependency limitations. If this module is only available in v3, cannot accept this change at this time.

@TheRealAmazonKendra
Copy link
Contributor

This could also be a result of our lambda layers being behind in v2 as well. We've now addressed that piece so we'll want to run this through our testing pipeline again to see what the outcome is.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

2 similar comments
@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@Rizxcviii
Copy link
Contributor Author

@comcalvi is there any update with this PR?

@comcalvi
Copy link
Contributor

comcalvi commented Mar 1, 2023

I ran it through the pipeline earlier this week, but it failed again. I'm running it again right now to see if it's the same failures

@comcalvi
Copy link
Contributor

comcalvi commented Mar 2, 2023

same error as before...going to investigate this today

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@mergify mergify bot dismissed comcalvi’s stale review March 6, 2023 10:40

Pull request has been modified.

@Rizxcviii Rizxcviii requested review from comcalvi and removed request for TheRealAmazonKendra March 6, 2023 11:05
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 2613835
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@comcalvi comcalvi left a comment

Choose a reason for hiding this comment

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

That fixed it, thanks for reopening this PR

@mergify
Copy link
Contributor

mergify bot commented Mar 8, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 1ca3e00 into aws:main Mar 8, 2023
@Rizxcviii Rizxcviii deleted the feature/commentting-encoding branch March 8, 2023 00:06
homakk pushed a commit to homakk/aws-cdk that referenced this pull request Mar 28, 2023
…customised (aws#24177)

In accordance with aws#24165, I'm opening the same pull request as before. Not sure if my previous PR aws#23597 will automatically be "re-merged" in, but if not, then you can review this pull request

Will AGAIN close aws#22506

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1 repeat-contributor [Pilot] contributed between 3-5 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@aws-cdk/aws-redshift-alpha: Add encoding and comments for redshift tables column construct
4 participants