Skip to content

feat: queryPreprocessing in logicalRestore + support inline SQL in any queryPreprocessing (#407)

Artyom Kartasov requested to merge 407-inline-query-preprocessor into master

Description

  • support queryPreprocessing in logicalRestore
  • add inline SQL processing to snapshot jobs (logicalSnapshot, physicalSnapshot) as well

Related issue

#407 (closed)

Examples

retrieval:
    jobs:
        - logicalRestore
        - logicalSnapshot
    spec:
        logicalRestore:
            options:
                queryPreprocessing:
                    queryPath: ""
                    maxParallelWorkers: 2
                    inline: |
                      CREATE ROLE tony;
                      CREATE ROLE mary;
        logicalSnapshot:
            options:
                dataPatching:
                    queryPreprocessing:
                        inline: |
                            CREATE ROLE snapshotUser;

Checklist

  • MR description has been reviewed
  • MR changes are functionally tested
  • MR does NOT have text changes OR there are text changes and they have been reviewed
  • MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed
  • MR does NOT have UI changes OR there are UI changes and they have been reviewed

Closes #407 (closed)

Edited by Artyom Kartasov

Merge request reports