Sling v1.5.0 (2025-11-30T16:59:21Z)
Key Features
API Specification Enhancements
- Endpoint-specific authentication: Refactored API authentication to allow individual endpoints to define and manage their own authentication, including endpoint-level auth expiry and re-authentication
- Dynamic endpoint rendering: Added
Dynamicfield toEndpointfor generated state indication - New rule types: Added
RuleTypeSkipto skip records andRuleTypeBreakto stop processing requests for current iteration - Enhanced state management: Implemented
contextMapfor improved state management across endpoints - Renamed
AggregationTypeFlattentoAggregationTypeCollectfor clearer semantics
Database & Connection Improvements
- DuckDB 1.4.1: Updated to latest DuckDB version
- Native pgx connection for Cloud SQL: Implemented native pgx connection for Cloud SQL COPY operations
- ClickHouse boolean handling: Fixed boolean-to-string conversion in
CastColumnForSelectfunction - DuckLake SQLite catalog: Automatically create parent directory for SQLite catalog if needed
- GCP credentials: Added base64 decoding for GCP credentials in BigQuery, MySQL, PostgreSQL, and Redshift connections
Replication & Pipeline Enhancements
- Wildcard hooks: Added support for wildcard hooks in replication configuration (e.g.,
pre.*,post.*) - Dynamic SQL rendering: Enhanced evaluator integration for dynamic SQL rendering with JMESPath compatibility
- Incremental mode improvements: Added
hasRangemethod and improved incremental mode warnings - Periodic state updates: Implemented periodic state updates during replication execution
- Run state tracking: Added optional fields for incremental value and range in
RunState
Environment & Configuration
- EnvFile refactoring: Refactored
VariablestoEnvinEnvFilestructure for improved clarity - Legacy support: Improved handling for empty
EnvandVariablesmaps with backward compatibility - LocalConnections: Initialize and populate
LocalConnectionsmap with connection data
Error Handling & Debugging
- Enhanced error messages: Improved error messages for CSV input errors, URL parsing failures, and transaction commit issues
- S3 region guidance: Added guidance for S3 region specification in DuckLake error messages
- Goroutine stack dumps: Dump goroutine stack on critical events (Ctrl+C, timeout) for debugging
SSH Enhancements
- NewSession method: Added
NewSessionmethod to create SSH sessions with proper error handling - Comprehensive SSH tests: Added comprehensive SSH command tests with various scenarios
Concurrency Improvements
- Concurrent maps: Replaced standard maps with concurrent-map for
LocalConnectionsand transforms to prevent race conditions - Synchronized stopIters: Added synchronization during endpoint setup
Bug Fixes
- Fixed debug logging for HTTP stream initialization in DuckDB
- Fixed overwriting existing state in
renderEndpointTemplate - Fixed nil
Pipelinehandling inContextmethod ofPipelineStepExecution - Fixed replication step configuration and environment variable handling
- Fixed timeout duration to use seconds instead of milliseconds
- Removed redundant check for disabled streams during replication preparation
- Fixed missing
filepathimport indatabase_ducklake.go - Removed unused
duckURIvariable in filesystem operations
Test Infrastructure
- Added comprehensive routine tests for logging, validation, file operations, and HTTP fetch
- Added test orchestration script for CLI and database testing
- Added dependency management for test cases with
afterfield - Added group classification for test organization
- Added MSSQL to Postgres decimal precision and
cast_astests - Added nested JSON to SQLite test scripts
- Added test for wildcard streams with disabled table exclusion
- Added ClickHouse boolean-to-string conversion test
- Added test for
{fields}placeholder with select parameter - Added HTTP POST hooks test suite for JSON payloads