Skip to content

v1.5.0

Choose a tag to compare

@flarco flarco released this 30 Nov 16:57
· 837 commits to main since this release
85bf3c7

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 Dynamic field to Endpoint for generated state indication
  • New rule types: Added RuleTypeSkip to skip records and RuleTypeBreak to stop processing requests for current iteration
  • Enhanced state management: Implemented contextMap for improved state management across endpoints
  • Renamed AggregationTypeFlatten to AggregationTypeCollect for 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 CastColumnForSelect function
  • 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 hasRange method 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 Variables to Env in EnvFile structure for improved clarity
  • Legacy support: Improved handling for empty Env and Variables maps with backward compatibility
  • LocalConnections: Initialize and populate LocalConnections map 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 NewSession method 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 LocalConnections and 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 Pipeline handling in Context method of PipelineStepExecution
  • 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 filepath import in database_ducklake.go
  • Removed unused duckURI variable 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 after field
  • Added group classification for test organization
  • Added MSSQL to Postgres decimal precision and cast_as tests
  • 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