Skip to content

Conversation

theboringhumane
Copy link

Issue #, if available:

N/A

Description of changes:

  • Introduced ClickHouseRunnerEnhanced class to add support for direct HTTPS URLs (in addition to S3).
  • Updated buildQuery and buildS3Uri methods in ClickHouseRunner to handle HTTPS URLs and add automatic table function and format detection based on the URL.
  • Refactored app.ts to use the enhanced runner for better HTTPS and S3 compatibility.
  • Added handling for common open data URL patterns and improved legacy S3 compatibility.
  • Backward compatibility maintained via ClickHouseRunner legacy class.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…sting ClickHouseRunner methods

- Introduced ClickHouseRunnerEnhanced class to support HTTPS URLs for data sources.
- Updated buildQuery and buildS3Uri methods in ClickHouseRunner to handle HTTPS URLs.
- Enhanced query building logic to determine appropriate table functions based on URL format.
- Added legacy ClickHouseRunner class for backward compatibility.
- Updated app.ts to replace ClickHouseRunner with ClickHouseRunnerEnhanced.
- This change leverages the new class introduced for enhanced HTTPS support and improved query handling.
- Updated app.ts to prioritize event.rawPath for URL retrieval and added logic to remove leading slashes from object paths.
- Modified ClickHouseRunnerEnhanced to specifically handle S3 URLs and fallback to s3() function for non-HTTP URLs, improving URL processing capabilities.
- Introduced two IAM policy files: `iam-policy.json` for basic Lambda access and `iam-policy-comprehensive.json` for additional S3 permissions.
- Created `IAM-SETUP.md` documentation detailing the setup process for IAM policies.
- Added `setup-iam.sh` script to automate the creation and attachment of IAM policies for users.
- Updated `.gitignore` to include `.gitmodules` file.
- Deleted `iam-policy.json` and `iam-policy-comprehensive.json` files, which contained IAM policies for Lambda and S3 access.
- Removed `IAM-SETUP.md` documentation that provided setup instructions for these IAM policies.
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.

1 participant