sqlload-cli 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/Cargo.lock +5 -37
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/Cargo.toml +2 -2
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/PKG-INFO +1 -1
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/Cargo.toml +18 -8
- sqlload_cli-0.2.0/crates/sqlload/LICENSE +201 -0
- sqlload_cli-0.2.0/crates/sqlload/README.md +14 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/_helpers/commands.rs +18 -18
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/main/run.rs +1 -1
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/_helpers/defaults.rs +17 -4
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/_helpers/validate.rs +11 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/constants.rs +4 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/models.rs +29 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/_helpers/mod.rs +1 -0
- sqlload_cli-0.2.0/crates/sqlload/src/delivery/_helpers/pending_loads.rs +264 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/_helpers/stage.rs +222 -16
- sqlload_cli-0.2.0/crates/sqlload/src/delivery/constants.rs +19 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/models.rs +114 -9
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/tests.rs +4 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/_helpers/stream_task.rs +108 -12
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/lib.rs +3 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/main.rs +1 -1
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/metrics/models.rs +35 -3
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/_helpers/load_report.rs +45 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/_helpers/mod.rs +3 -0
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/_helpers/pipe_request.rs +31 -0
- sqlload_cli-0.1.0/crates/sqlload/src/stage_api/main/put_object.rs → sqlload_cli-0.2.0/crates/sqlload/src/stage_api/_helpers/signed_request.rs +14 -21
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/constants.rs +2 -0
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/main/head_object.rs +36 -0
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/main/insert_files.rs +36 -0
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/main/insert_report.rs +23 -0
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/main/load_history_scan.rs +22 -0
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/main/mod.rs +6 -0
- sqlload_cli-0.2.0/crates/sqlload/src/stage_api/main/put_object.rs +23 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/models.rs +39 -1
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/tests.rs +2 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/_helpers/objects.rs +122 -14
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/_helpers/routing.rs +11 -2
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/models.rs +102 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/main/mod.rs +2 -0
- sqlload_cli-0.2.0/crates/sqlload-testkit/src/harness/main/read_metrics.rs +21 -0
- sqlload_cli-0.2.0/crates/sqlload-testkit/src/harness/main/wait_for_commits.rs +29 -0
- sqlload_cli-0.2.0/crates/sqlload-testkit/src/redpanda/constants.rs +5 -0
- sqlload_cli-0.2.0/crates/sqlload-testkit/src/redpanda/main/committed_offsets.rs +57 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/redpanda/main/mod.rs +1 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/pyproject.toml +2 -2
- sqlload_cli-0.1.0/crates/sqlload/src/batching/tests/helpers.rs +0 -30
- sqlload_cli-0.1.0/crates/sqlload/src/batching/tests/test_batcher.rs +0 -81
- sqlload_cli-0.1.0/crates/sqlload/src/batching/tests/test_compress_chunks.rs +0 -78
- sqlload_cli-0.1.0/crates/sqlload/src/batching/tests/test_types.rs +0 -23
- sqlload_cli-0.1.0/crates/sqlload/src/config/tests/helpers.rs +0 -22
- sqlload_cli-0.1.0/crates/sqlload/src/config/tests/test_parse_config.rs +0 -190
- sqlload_cli-0.1.0/crates/sqlload/src/config/tests/test_stream_settings.rs +0 -63
- sqlload_cli-0.1.0/crates/sqlload/src/config/tests/test_types.rs +0 -36
- sqlload_cli-0.1.0/crates/sqlload/src/delivery/constants.rs +0 -5
- sqlload_cli-0.1.0/crates/sqlload/src/delivery/tests/test_aws_credentials.rs +0 -44
- sqlload_cli-0.1.0/crates/sqlload/src/delivery/tests/test_stage_paths.rs +0 -67
- sqlload_cli-0.1.0/crates/sqlload/src/delivery/tests/test_types.rs +0 -20
- sqlload_cli-0.1.0/crates/sqlload/src/envelope/tests/helpers.rs +0 -43
- sqlload_cli-0.1.0/crates/sqlload/src/envelope/tests/test_encode_row.rs +0 -141
- sqlload_cli-0.1.0/crates/sqlload/src/envelope/tests/test_types.rs +0 -20
- sqlload_cli-0.1.0/crates/sqlload/src/file_format/tests/helpers.rs +0 -64
- sqlload_cli-0.1.0/crates/sqlload/src/file_format/tests/test_load_select.rs +0 -61
- sqlload_cli-0.1.0/crates/sqlload/src/file_format/tests/test_parquet_file.rs +0 -156
- sqlload_cli-0.1.0/crates/sqlload/src/file_format/tests/test_types.rs +0 -17
- sqlload_cli-0.1.0/crates/sqlload/src/kafka/tests/test_prefetch_kbytes.rs +0 -42
- sqlload_cli-0.1.0/crates/sqlload/src/kafka/tests/test_types.rs +0 -6
- sqlload_cli-0.1.0/crates/sqlload/src/naming/tests/helpers.rs +0 -15
- sqlload_cli-0.1.0/crates/sqlload/src/naming/tests/test_qualify_stage.rs +0 -26
- sqlload_cli-0.1.0/crates/sqlload/src/naming/tests/test_resolve_streams.rs +0 -85
- sqlload_cli-0.1.0/crates/sqlload/src/naming/tests/test_resolve_tables.rs +0 -117
- sqlload_cli-0.1.0/crates/sqlload/src/naming/tests/test_shard_of.rs +0 -40
- sqlload_cli-0.1.0/crates/sqlload/src/naming/tests/test_types.rs +0 -41
- sqlload_cli-0.1.0/crates/sqlload/src/planning/tests/helpers.rs +0 -52
- sqlload_cli-0.1.0/crates/sqlload/src/planning/tests/test_build_plan.rs +0 -142
- sqlload_cli-0.1.0/crates/sqlload/src/planning/tests/test_types.rs +0 -18
- sqlload_cli-0.1.0/crates/sqlload/src/stage_api/main/insert_files.rs +0 -35
- sqlload_cli-0.1.0/crates/sqlload/src/stage_api/main/mod.rs +0 -3
- sqlload_cli-0.1.0/crates/sqlload/src/stage_api/tests/test_encryption.rs +0 -64
- sqlload_cli-0.1.0/crates/sqlload/src/stage_api/tests/test_sigv4.rs +0 -50
- sqlload_cli-0.1.0/crates/sqlload/src/stage_api/tests/test_stage_response.rs +0 -48
- sqlload_cli-0.1.0/crates/sqlload/src/stage_api/tests/test_types.rs +0 -29
- sqlload_cli-0.1.0/crates/sqlload/tests/exporter/helpers.rs +0 -49
- sqlload_cli-0.1.0/crates/sqlload/tests/exporter/test_s3_delivery.rs +0 -203
- sqlload_cli-0.1.0/crates/sqlload/tests/exporter/test_sharding.rs +0 -85
- sqlload_cli-0.1.0/crates/sqlload/tests/exporter/test_streaming_delivery.rs +0 -133
- sqlload_cli-0.1.0/crates/sqlload/tests/exporter/test_streaming_recovery.rs +0 -201
- sqlload_cli-0.1.0/crates/sqlload/tests/exporter/test_types.rs +0 -69
- sqlload_cli-0.1.0/crates/sqlload/tests/exporter.rs +0 -14
- sqlload_cli-0.1.0/crates/sqlload-cli/Cargo.toml +0 -36
- sqlload_cli-0.1.0/crates/sqlload-cli/src/lib.rs +0 -5
- sqlload_cli-0.1.0/crates/sqlload-testkit/src/redpanda/constants.rs +0 -2
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/README.md +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/auth/_helpers/jwt.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/auth/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/auth/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/auth/main/account_url.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/auth/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/auth/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/auth/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/_helpers/chunks.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/_helpers/gzip.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/main/compress_chunks.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/main/gzip_bytes.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/batching/tests.rs +0 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/_helpers/limits.rs +0 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/_helpers/logging.rs +0 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/_helpers/signals.rs +0 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/main/mod.rs +0 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/mod.rs +0 -0
- {sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/_helpers/interpolate.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/_helpers/patterns.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/_helpers/units.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/errors.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/main/load_config.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/main/parse_config.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/main/stream_settings.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/config/tests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/_helpers/aws_credentials.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/_helpers/stage_paths.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/_helpers/streaming.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/errors.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/main/build_delivery.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/delivery/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/envelope/_helpers/fields.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/envelope/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/envelope/main/encode_row.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/envelope/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/envelope/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/envelope/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/envelope/tests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/_helpers/supervisor.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/main/build_clients.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/main/run_exporter.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/exporter/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/_helpers/columns.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/_helpers/load_select.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/_helpers/parquet.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/main/copy_into.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/main/encode_file.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/main/file_extension.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/file_format/tests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/_helpers/counting.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/_helpers/error_body.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/errors.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/main/check_response.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/main/http_client.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/http/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/_helpers/client.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/build_consumer.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/group_lag.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/list_topics.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/partitions_of.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/prefetch_kbytes.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/select_topics.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/main/to_record.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/tests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/kafka/types.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/metrics/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/metrics/main/serve_metrics.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/metrics/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/_helpers/identifiers.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/_helpers/patterns.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/_helpers/streams.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/_helpers/tables.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/main/qualify_stage.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/main/quote_name.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/main/resolve_streams.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/main/resolve_tables.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/main/shard_of.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/naming/tests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/_helpers/compatibility.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/_helpers/ddl.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/_helpers/objects.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/errors.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/main/apply_plan.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/main/build_plan.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/main/load_path.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/main/read_existing.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/planning/tests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/_helpers/requests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/_helpers/results.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/main/execute_sql.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/sql_api/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/_helpers/encryption.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/_helpers/s3_errors.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/_helpers/sigv4.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/_helpers/stage_response.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/main/put_stage_file.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/stage_api/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/_helpers/channels.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/main/check_connections.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/main/collect_status.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/status/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/_helpers/requests.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/main/append_rows.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/main/channel_statuses.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/main/ingest_host.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/main/open_channel.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/streaming_api/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/_helpers/civil.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/main/amz_date.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/main/iso_utc.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/main/now_ms.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/main/utc_date.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload/src/time_text/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/Cargo.toml +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/configs/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/configs/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/configs/main/s3_config.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/configs/main/streaming_config.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/configs/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/configs/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/_helpers/loading.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/_helpers/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/_helpers/statements.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/_helpers/streaming.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/main/start_fake_snowflake.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/fake_snowflake/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/constants.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/main/start_exporter.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/main/start_stack.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/main/stop_exporter.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/main/wait_for_appends.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/main/wait_for_rows.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/harness/models.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/lib.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/records/main/distinct_positions.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/records/main/incompressible_values.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/records/main/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/records/main/order_values.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/records/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/redpanda/main/produce_records.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/redpanda/main/start_redpanda.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/redpanda/mod.rs +0 -0
- {sqlload_cli-0.1.0 → sqlload_cli-0.2.0}/crates/sqlload-testkit/src/redpanda/models.rs +0 -0
|
@@ -956,12 +956,6 @@ dependencies = [
|
|
|
956
956
|
"windows-sys 0.61.2",
|
|
957
957
|
]
|
|
958
958
|
|
|
959
|
-
[[package]]
|
|
960
|
-
name = "fastrand"
|
|
961
|
-
version = "2.5.0"
|
|
962
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
963
|
-
checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
964
|
-
|
|
965
959
|
[[package]]
|
|
966
960
|
name = "ferroid"
|
|
967
961
|
version = "2.0.0"
|
|
@@ -3114,7 +3108,7 @@ dependencies = [
|
|
|
3114
3108
|
|
|
3115
3109
|
[[package]]
|
|
3116
3110
|
name = "sqlload"
|
|
3117
|
-
version = "0.
|
|
3111
|
+
version = "0.2.0"
|
|
3118
3112
|
dependencies = [
|
|
3119
3113
|
"aes",
|
|
3120
3114
|
"arrow-array",
|
|
@@ -3123,6 +3117,7 @@ dependencies = [
|
|
|
3123
3117
|
"base64 0.22.1",
|
|
3124
3118
|
"chrono",
|
|
3125
3119
|
"chrono-tz",
|
|
3120
|
+
"clap",
|
|
3126
3121
|
"flate2",
|
|
3127
3122
|
"getrandom 0.3.4",
|
|
3128
3123
|
"globset",
|
|
@@ -3135,6 +3130,7 @@ dependencies = [
|
|
|
3135
3130
|
"rdkafka",
|
|
3136
3131
|
"regex",
|
|
3137
3132
|
"reqwest",
|
|
3133
|
+
"rlimit",
|
|
3138
3134
|
"rsa",
|
|
3139
3135
|
"rustls",
|
|
3140
3136
|
"serde",
|
|
@@ -3148,28 +3144,13 @@ dependencies = [
|
|
|
3148
3144
|
"tower-layer",
|
|
3149
3145
|
"tower-service",
|
|
3150
3146
|
"tracing",
|
|
3151
|
-
"uuid",
|
|
3152
|
-
]
|
|
3153
|
-
|
|
3154
|
-
[[package]]
|
|
3155
|
-
name = "sqlload-cli"
|
|
3156
|
-
version = "0.1.0"
|
|
3157
|
-
dependencies = [
|
|
3158
|
-
"clap",
|
|
3159
|
-
"humantime",
|
|
3160
|
-
"rlimit",
|
|
3161
|
-
"serde_json",
|
|
3162
|
-
"sqlload",
|
|
3163
|
-
"tempfile",
|
|
3164
|
-
"tokio",
|
|
3165
|
-
"tokio-util",
|
|
3166
|
-
"tracing",
|
|
3167
3147
|
"tracing-subscriber",
|
|
3148
|
+
"uuid",
|
|
3168
3149
|
]
|
|
3169
3150
|
|
|
3170
3151
|
[[package]]
|
|
3171
3152
|
name = "sqlload-testkit"
|
|
3172
|
-
version = "0.
|
|
3153
|
+
version = "0.2.0"
|
|
3173
3154
|
dependencies = [
|
|
3174
3155
|
"axum",
|
|
3175
3156
|
"bytes",
|
|
@@ -3267,19 +3248,6 @@ dependencies = [
|
|
|
3267
3248
|
"syn 3.0.9",
|
|
3268
3249
|
]
|
|
3269
3250
|
|
|
3270
|
-
[[package]]
|
|
3271
|
-
name = "tempfile"
|
|
3272
|
-
version = "3.27.0"
|
|
3273
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3274
|
-
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
|
3275
|
-
dependencies = [
|
|
3276
|
-
"fastrand",
|
|
3277
|
-
"getrandom 0.4.3",
|
|
3278
|
-
"once_cell",
|
|
3279
|
-
"rustix",
|
|
3280
|
-
"windows-sys 0.61.2",
|
|
3281
|
-
]
|
|
3282
|
-
|
|
3283
3251
|
[[package]]
|
|
3284
3252
|
name = "testcontainers"
|
|
3285
3253
|
version = "0.28.0"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[workspace]
|
|
2
|
-
members = ["crates/sqlload", "crates/sqlload-
|
|
2
|
+
members = ["crates/sqlload", "crates/sqlload-testkit"]
|
|
3
3
|
resolver = "2"
|
|
4
4
|
|
|
5
5
|
[workspace.package]
|
|
6
|
-
version = "0.
|
|
6
|
+
version = "0.2.0" # x-release-please-version
|
|
7
7
|
edition = "2024"
|
|
8
8
|
license = "Apache-2.0"
|
|
9
9
|
publish = false
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "sqlload"
|
|
3
3
|
version.workspace = true
|
|
4
|
-
description = "
|
|
4
|
+
description = "SQL data loading tooling. Pre-release, under development."
|
|
5
5
|
edition.workspace = true
|
|
6
6
|
license.workspace = true
|
|
7
|
-
publish
|
|
7
|
+
publish = true
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
# Integration tests need the unpublished testkit.
|
|
10
|
+
exclude = ["tests/"]
|
|
8
11
|
repository.workspace = true
|
|
9
12
|
rust-version.workspace = true
|
|
10
13
|
|
|
14
|
+
[[bin]]
|
|
15
|
+
name = "sqlload"
|
|
16
|
+
path = "src/main.rs"
|
|
17
|
+
required-features = ["cli"]
|
|
18
|
+
# The library and the executable share a name; document only the library.
|
|
19
|
+
doc = false
|
|
20
|
+
|
|
11
21
|
[features]
|
|
12
|
-
default = []
|
|
22
|
+
default = ["cli"]
|
|
23
|
+
# The `sqlload` executable and its command-line parsing.
|
|
24
|
+
cli = ["dep:clap", "dep:rlimit", "dep:tracing-subscriber"]
|
|
13
25
|
# TLS and SASL support in the bundled librdkafka.
|
|
14
26
|
ssl = ["rdkafka/ssl"]
|
|
15
27
|
# TLS with OpenSSL built in, so the binary needs no system OpenSSL (PyPI wheels).
|
|
@@ -26,6 +38,7 @@ axum.workspace = true
|
|
|
26
38
|
base64.workspace = true
|
|
27
39
|
chrono.workspace = true
|
|
28
40
|
chrono-tz.workspace = true
|
|
41
|
+
clap = { workspace = true, optional = true }
|
|
29
42
|
flate2.workspace = true
|
|
30
43
|
getrandom.workspace = true
|
|
31
44
|
globset.workspace = true
|
|
@@ -38,6 +51,7 @@ prometheus-client.workspace = true
|
|
|
38
51
|
regex.workspace = true
|
|
39
52
|
rdkafka.workspace = true
|
|
40
53
|
reqwest.workspace = true
|
|
54
|
+
rlimit = { workspace = true, optional = true }
|
|
41
55
|
rsa.workspace = true
|
|
42
56
|
rustls.workspace = true
|
|
43
57
|
serde.workspace = true
|
|
@@ -50,6 +64,7 @@ toml.workspace = true
|
|
|
50
64
|
tower-layer.workspace = true
|
|
51
65
|
tower-service.workspace = true
|
|
52
66
|
tracing.workspace = true
|
|
67
|
+
tracing-subscriber = { workspace = true, optional = true }
|
|
53
68
|
uuid.workspace = true
|
|
54
69
|
|
|
55
70
|
[dev-dependencies]
|
|
@@ -62,8 +77,3 @@ tokio-util.workspace = true
|
|
|
62
77
|
|
|
63
78
|
[lints]
|
|
64
79
|
workspace = true
|
|
65
|
-
|
|
66
|
-
[[test]]
|
|
67
|
-
name = "exporter"
|
|
68
|
-
path = "tests/exporter.rs"
|
|
69
|
-
required-features = ["container-tests"]
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# sqlload
|
|
2
|
+
|
|
3
|
+
SQL data loading tooling.
|
|
4
|
+
|
|
5
|
+
> **Pre-release.** sqlload is under active development and is not yet intended for general use.
|
|
6
|
+
> Commands, configuration, the library API and behaviour can change without notice between
|
|
7
|
+
> releases, and there is no support or stability guarantee.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
cargo install sqlload
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The library is the engine behind the `sqlload` command; build without default features to leave
|
|
14
|
+
out the command-line dependencies.
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
use std::time::Duration;
|
|
2
2
|
|
|
3
|
-
use
|
|
4
|
-
use
|
|
5
|
-
use
|
|
6
|
-
use
|
|
7
|
-
use
|
|
8
|
-
use
|
|
9
|
-
use
|
|
10
|
-
use
|
|
11
|
-
use
|
|
12
|
-
use
|
|
13
|
-
use
|
|
14
|
-
use
|
|
15
|
-
use
|
|
16
|
-
use
|
|
17
|
-
use
|
|
18
|
-
use
|
|
19
|
-
use
|
|
3
|
+
use crate::config::models::Config;
|
|
4
|
+
use crate::exporter::main::build_clients::build_clients;
|
|
5
|
+
use crate::exporter::main::run_exporter::run_exporter;
|
|
6
|
+
use crate::exporter::models::Clients;
|
|
7
|
+
use crate::kafka::main::list_topics::list_topics;
|
|
8
|
+
use crate::kafka::main::select_topics::select_topics;
|
|
9
|
+
use crate::naming::main::resolve_streams::resolve_streams;
|
|
10
|
+
use crate::naming::main::resolve_tables::resolve_tables;
|
|
11
|
+
use crate::naming::main::shard_of::shard_of;
|
|
12
|
+
use crate::naming::models::{NameSource, TopicTable};
|
|
13
|
+
use crate::planning::main::apply_plan::apply_plan;
|
|
14
|
+
use crate::planning::main::build_plan::build_plan;
|
|
15
|
+
use crate::planning::main::read_existing::read_existing;
|
|
16
|
+
use crate::planning::models::{ObjectState, Plan, PlannedObject, StreamPlan};
|
|
17
|
+
use crate::status::main::check_connections::check_connections;
|
|
18
|
+
use crate::status::main::collect_status::collect_status;
|
|
19
|
+
use crate::status::models::{PartitionStatus, StreamStatus};
|
|
20
20
|
use tokio_util::sync::CancellationToken;
|
|
21
21
|
|
|
22
22
|
use crate::command::_helpers::limits::raise_open_file_limit;
|
|
@@ -145,7 +145,7 @@ pub(crate) async fn tables(
|
|
|
145
145
|
None => list_topics(config).await?,
|
|
146
146
|
};
|
|
147
147
|
let streams = resolve_streams(config, &topics).map_err(|problems| problems.join("\n"))?;
|
|
148
|
-
let mut by_topic: std::collections::BTreeMap<&str, &
|
|
148
|
+
let mut by_topic: std::collections::BTreeMap<&str, &crate::naming::models::Stream> =
|
|
149
149
|
std::collections::BTreeMap::new();
|
|
150
150
|
for stream in &streams {
|
|
151
151
|
for topic in &stream.topics {
|
{sqlload_cli-0.1.0/crates/sqlload-cli → sqlload_cli-0.2.0/crates/sqlload}/src/command/main/run.rs
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
use std::io::Write;
|
|
4
4
|
use std::process::ExitCode;
|
|
5
5
|
|
|
6
|
+
use crate::config::main::load_config::load_config;
|
|
6
7
|
use clap::Parser;
|
|
7
|
-
use sqlload::config::main::load_config::load_config;
|
|
8
8
|
|
|
9
9
|
use crate::command::_helpers::commands::{apply, check, plan, run_export, status, tables};
|
|
10
10
|
use crate::command::_helpers::logging::init_logging;
|
|
@@ -2,10 +2,11 @@ use std::time::Duration;
|
|
|
2
2
|
|
|
3
3
|
use crate::config::constants::{
|
|
4
4
|
DEFAULT_CONSUMER_GROUP, DEFAULT_DISCOVERY_INTERVAL_SECS, DEFAULT_MAX_AGE_SECS,
|
|
5
|
-
DEFAULT_MAX_BYTES, DEFAULT_MAX_IN_FLIGHT,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
DEFAULT_MAX_BYTES, DEFAULT_MAX_IN_FLIGHT, DEFAULT_MAX_PENDING_FILES, DEFAULT_MAX_REQUEST_BYTES,
|
|
6
|
+
DEFAULT_MAX_ROWS, DEFAULT_MAX_TOTAL_BYTES, DEFAULT_PENDING_CHECK_AFTER_SECS,
|
|
7
|
+
DEFAULT_PENDING_RECHECK_EVERY_SECS, DEFAULT_PIPE_TEMPLATE, DEFAULT_PREFETCH_BUDGET,
|
|
8
|
+
DEFAULT_RETAIN_SECS, DEFAULT_S3_PATH, DEFAULT_STAGE_TEMPLATE, DEFAULT_STARTUP_BATCH,
|
|
9
|
+
DEFAULT_STARTUP_INTERVAL_MS, DEFAULT_STREAMING_PIPE_TEMPLATE,
|
|
9
10
|
};
|
|
10
11
|
use crate::config::models::{ByteSize, ColumnConfig, EnvelopeField};
|
|
11
12
|
|
|
@@ -41,6 +42,18 @@ pub(crate) fn max_in_flight() -> usize {
|
|
|
41
42
|
DEFAULT_MAX_IN_FLIGHT
|
|
42
43
|
}
|
|
43
44
|
|
|
45
|
+
pub(crate) fn max_pending_files() -> usize {
|
|
46
|
+
DEFAULT_MAX_PENDING_FILES
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
pub(crate) fn pending_check_after() -> Duration {
|
|
50
|
+
Duration::from_secs(DEFAULT_PENDING_CHECK_AFTER_SECS)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
pub(crate) fn pending_recheck_every() -> Duration {
|
|
54
|
+
Duration::from_secs(DEFAULT_PENDING_RECHECK_EVERY_SECS)
|
|
55
|
+
}
|
|
56
|
+
|
|
44
57
|
pub(crate) fn auto_ingest() -> bool {
|
|
45
58
|
false
|
|
46
59
|
}
|
|
@@ -141,6 +141,17 @@ fn staging_problems(config: &Config) -> Vec<String> {
|
|
|
141
141
|
if config.staging.max_in_flight == 0 {
|
|
142
142
|
problems.push("staging.max_in_flight must be at least 1".to_owned());
|
|
143
143
|
}
|
|
144
|
+
if config.staging.max_pending_files == 0 {
|
|
145
|
+
problems.push("staging.max_pending_files must be at least 1".to_owned());
|
|
146
|
+
}
|
|
147
|
+
if config.staging.pending_check_after.is_zero()
|
|
148
|
+
|| config.staging.pending_recheck_every.is_zero()
|
|
149
|
+
{
|
|
150
|
+
problems.push(
|
|
151
|
+
"staging.pending_check_after and staging.pending_recheck_every must be positive"
|
|
152
|
+
.to_owned(),
|
|
153
|
+
);
|
|
154
|
+
}
|
|
144
155
|
problems.extend(match (is_s3, config.staging.s3.is_some()) {
|
|
145
156
|
(true, false) => vec!["staging.kind = \"s3\" needs a [staging.s3] section".to_owned()],
|
|
146
157
|
(false, true) => vec!["[staging.s3] is only used when staging.kind = \"s3\"".to_owned()],
|
|
@@ -7,6 +7,10 @@ pub const DEFAULT_STARTUP_BATCH: usize = 20;
|
|
|
7
7
|
pub const DEFAULT_STARTUP_INTERVAL_MS: u64 = 500;
|
|
8
8
|
/// Uploads, and separately loads, in flight at once across all streams.
|
|
9
9
|
pub const DEFAULT_MAX_IN_FLIGHT: usize = 32;
|
|
10
|
+
/// Snowpipe files per stream sent but not yet committed.
|
|
11
|
+
pub const DEFAULT_MAX_PENDING_FILES: usize = 32;
|
|
12
|
+
pub const DEFAULT_PENDING_CHECK_AFTER_SECS: u64 = 5 * 60;
|
|
13
|
+
pub const DEFAULT_PENDING_RECHECK_EVERY_SECS: u64 = 10 * 60;
|
|
10
14
|
pub const DEFAULT_RETAIN_SECS: u64 = 7 * 24 * 3600;
|
|
11
15
|
pub const DEFAULT_MAX_BYTES: u64 = 32 * 1024 * 1024;
|
|
12
16
|
pub const DEFAULT_MAX_ROWS: usize = 100_000;
|
|
@@ -134,10 +134,39 @@ pub struct StagingConfig {
|
|
|
134
134
|
/// The most uploads, and separately the most loads, in flight at once across all streams.
|
|
135
135
|
#[serde(default = "defaults::max_in_flight")]
|
|
136
136
|
pub max_in_flight: usize,
|
|
137
|
+
/// Snowpipe loads: the most files per stream sent but not yet committed; a full stream pauses its partitions.
|
|
138
|
+
#[serde(default = "defaults::max_pending_files")]
|
|
139
|
+
pub max_pending_files: usize,
|
|
140
|
+
/// What happens when Snowpipe reports that an `insertFiles` file failed to load.
|
|
141
|
+
#[serde(default)]
|
|
142
|
+
pub on_load_error: LoadErrorPolicy,
|
|
143
|
+
/// Snowpipe loads: how long after a file is sent without a report its load history and stage object are checked.
|
|
144
|
+
#[serde(
|
|
145
|
+
default = "defaults::pending_check_after",
|
|
146
|
+
deserialize_with = "deserialize_duration"
|
|
147
|
+
)]
|
|
148
|
+
pub pending_check_after: Duration,
|
|
149
|
+
/// Snowpipe loads: how often a file still unreported after the first check is checked again.
|
|
150
|
+
#[serde(
|
|
151
|
+
default = "defaults::pending_recheck_every",
|
|
152
|
+
deserialize_with = "deserialize_duration"
|
|
153
|
+
)]
|
|
154
|
+
pub pending_recheck_every: Duration,
|
|
137
155
|
#[serde(default)]
|
|
138
156
|
pub s3: Option<S3Config>,
|
|
139
157
|
}
|
|
140
158
|
|
|
159
|
+
/// What happens to a staged file Snowpipe failed to load, fully or partly.
|
|
160
|
+
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Deserialize)]
|
|
161
|
+
#[serde(rename_all = "snake_case")]
|
|
162
|
+
pub enum LoadErrorPolicy {
|
|
163
|
+
/// Stop the stream without committing the file's offsets.
|
|
164
|
+
#[default]
|
|
165
|
+
Halt,
|
|
166
|
+
/// Log it, count it and commit past it.
|
|
167
|
+
Skip,
|
|
168
|
+
}
|
|
169
|
+
|
|
141
170
|
/// How staged files are encoded.
|
|
142
171
|
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Deserialize)]
|
|
143
172
|
#[serde(rename_all = "snake_case")]
|