Closed OneCyrus closed 2 weeks ago
Description of the issue: all columns in the json are lowercase but i would like to keep the column casing the way they are in the database.
Sling version (sling --version): 1.2.20
sling --version
Operating System (linux, mac, windows): linux
linux
mac
windows
Replication Configuration:
export MSSQL='sqlserver://{{ mssql_login_user }}:{{ mssql_login_password }}@{{ mssql_host }}:{{ mssql_port }}?database={{ mssql_database }}' sling run --src-conn MSSQL \ --src-stream '{{ mssql_statement }}' \ --tgt-object 'file://{{ playbook_dir }}/{{ json_result_file }}' } \ --tgt-options '{"column_casing": "source"}' \ -d
-d
[90m2024-10-21 07:51:19[0m [33mDBG[0m Sling version: 1.2.20 (linux amd64) [90m2024-10-21 07:51:19[0m [33mDBG[0m type is db-file [90m2024-10-21 07:51:19[0m [33mDBG[0m using: {"columns":null,"mode":"full-refresh","transforms":null} [90m2024-10-21 07:51:19[0m [33mDBG[0m using source options: {"empty_as_null":false,"null_if":"NULL","datetime_format":"AUTO","max_decimals":-1} [90m2024-10-21 07:51:19[0m [33mDBG[0m using target options: {"header":true,"compression":"auto","concurrency":7,"datetime_format":"auto","delimiter":",","file_max_rows":0,"file_max_bytes":0,"max_decimals":-1,"use_bulk":true,"add_new_columns":true,"adjust_column_type":false,"column_casing":"source"} [90m2024-10-21 07:51:19[0m [33mDBG[0m opened "sqlserver" connection (conn-sqlserver-rgt) [90m2024-10-21 07:51:19[0m [32mINF[0m connecting to source database (sqlserver) [90m2024-10-21 07:51:19[0m [32mINF[0m reading from source database [90m2024-10-21 07:51:19[0m [33mDBG[0m [36mselect * from [dbo].[MTV_Microsoft$SQLServer$AnalysisServices$Windows$TabularInstance][0m [90m2024-10-21 07:51:19[0m [32mINF[0m writing to target file system (file) [90m2024-10-21 07:51:19[0m [33mDBG[0m opened "file" connection (conn-file-Rkg) [90m2024-10-21 07:51:19[0m [33mDBG[0m writing to file:///runner/project/datacollection/sources/scom/ssas_TabularInstance.json [fileRowLimit=0 fileBytesLimit=0 compression=auto concurrency=7 useBufferedStream=false fileFormat=json singleFile=true] [90m2024-10-21 07:51:19[0m [33mDBG[0m wrote 1.7 kB: 1 rows [16 r/s] [90m2024-10-21 07:51:19[0m [32mINF[0m wrote 1 rows [16 r/s] to file:///runner/project/datacollection/sources/scom/ssas_TabularInstance.json [90m2024-10-21 07:51:19[0m [33mDBG[0m closed "sqlserver" connection (conn-sqlserver-rgt) [90m2024-10-21 07:51:19[0m [32mINF[0m execution succeeded
Done, feel free to test the dev build: https://github.com/slingdata-io/sling-cli?tab=readme-ov-file#automated-dev-builds
Issue Description
Description of the issue: all columns in the json are lowercase but i would like to keep the column casing the way they are in the database.
Sling version (
sling --version
): 1.2.20Operating System (
linux
,mac
,windows
): linuxReplication Configuration:
-d
):