-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implement Export for Job Framework #1382
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
roegi
commented
Oct 18, 2024
- Enhance RunEmrJob-step to run locally
- Some fixes on SQLQuery related to quoting and query-context
- Refactor existing parts of import functionality to make it re-usable for export implementation
- Implement new Step for Job Framework "ExportSpaceToFiles"
- Add compiler implementation for jobs that export space data
- Streamline Ref parsing & validation and improve error messages
- Some minor refactorings on dependent connector resources
- Add Dockerfile / update docker compose yml to run Job Framework in Docker
- Add further Job Framework tests and make them runnable within Github pipeline
- Fully deactivate a space during import (if indices are dropped) to prevent read access without indices
- When errors occur, do not return them in the process methods anymore, but rather throw them - Use actual return types for all the process methods of all event types - Fix IterateChangesets & IterateChangesetsEvent to only expect one response type rather than producing two different ambiguous types - Adjust ChangesetApi, ChangesetCollection, Changeset accordingly - Remove testing code from actual PSQLXyzConnector implementation and move it into the TestStorageConnector - Update related test (PropertiesSearchIT) accordingly - Replace boxed java types by their scalar types at several places - Move some of the validation implementations from PSQLXyzConnector into the according QueryRunner implementations - Fix ModifySubscription QR to not misuse a FeatureCollection as response vehicle, but rather use a SuccessResponse instead Signed-off-by: Benjamin Rögner <[email protected]>
Signed-off-by: Benjamin Rögner <[email protected]>
Signed-off-by: Benjamin Rögner <[email protected]>
Signed-off-by: Benjamin Rögner <[email protected]>
Signed-off-by: Benjamin Rögner <[email protected]>
- Set scriptResourcePath inside new constructor of DatabaseSettings. If the scriptResourcePath is not set - checkScripts() will do nothing - Move database script installation to DatabaseSettings - Move Runtime-package to tools module + rename - Rename scripts. Add transport.sql - Some smaller refactorings regarding ImportFilesToSpace step - Create new TestClasses for different Steps - Align reading space() - Add first implementation of ExportToFiles Compiler - Create new scripts for export, import, transport - Centralize logging in TransportTools - Move import related functions from ext.sql - Move space related fields to SpaceBasedStep. Signed-off-by: Maximilian Chrzan <[email protected]> Signed-off-by: mchrza <[email protected]>
Signed-off-by: Maximilian Chrzan <[email protected]> Signed-off-by: mchrza <[email protected]> Signed-off-by: Benjamin Rögner <[email protected]>
- Some minor cleanups - Use simulatedLambda Requests for Tests. - Prepare usage of QueryBuilder. - Change to PropertiesQuery Object in Filters. - Move SpatialFilter to step module. - Shift parse logic from ApiParam to PropertiesQuery class. Signed-off-by: Maximilian Chrzan <[email protected]> Signed-off-by: mchrza <[email protected]>
…g using the "flags" param of regexp_replace() - That prevents confusion with the question marks sign to be interpreted as query-parameter placeholder - Add implementation for DownloadUrl#store() - Simplify EMR step handling in GraphTransformer - Add default implementation for LambdaBasedStep#init() so that only when needed it must be overridden by subclasses - Use standard method #registerOutputs() in RunEmrJob to upload the generated files - Fix RunEmrJob#validate() method to not throw a validation exception for missing input files but just report not being ready instead - Undo renaming of Step RunEmrJob - Enhance ExportSpaceToFiles step to use GetFeaturesByGeometryBuilder - Add new method SQLQuery#toExecutableQueryString() Signed-off-by: Benjamin Rögner <[email protected]>
- Fix GeometryValidation in case of h3Index and referenced Features - Add job-service docker file - Add handling of versionRef to export step (resolve & validate) - Add missing forward of filters, context and versionRef to ExportCompiler - In tests, add possibility to createSpace with spaceDefinition - Add Tests for GeometryValidator - Add function to retrieve the used "searchableProperties" - Add geometry validation using new GeometryValidator to centralize related code - Fix bug in GetFeaturesByGeometry QR that caused H3-index tests to fail - Add first IntegrationTests - Several improvements - Fix bug in SQLQuery that for fully substituted (executable) queries, in some scenarios the custom quotes were not "escaped" - Introduce a new "escaping" mechanism for custom quotes - Fix two bugs which have happened during job-deletions. - Fix bug in SQLQuery that values could not be used to replace parameter placeholders if containing a dollar sign - Fix bug in GetFeaturesByGeometryBuilder (missing AND) - Set threadCondition filter fragment in all sub-parts of the content query correctly - Fix query building for "GetFeaturesByGeometry" queries if geometry or ref is null Signed-off-by: Benjamin Rögner <[email protected]> Signed-off-by: Maximilian Chrzan <[email protected]> Signed-off-by: mchrza <[email protected]>
…event read access without indices Signed-off-by: Benjamin Rögner <[email protected]>
Signed-off-by: Ansari, Mujammil <[email protected]>
- Enable tests - Add JobService setup run - Upload generated files to provided path instead of registering outputs. Signed-off-by: Maximilian Chrzan <[email protected]> Signed-off-by: mchrza <[email protected]>
…DatabaseSettings Signed-off-by: Benjamin Rögner <[email protected]>
Signed-off-by: Benjamin Rögner <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.