Skip to content

[FIX] Sql - Fix comparison with values trailing spaces#6470

Merged
janezd merged 1 commit intobiolab:masterfrom
PrimozGodec:fix-mssql
Jun 16, 2023
Merged

[FIX] Sql - Fix comparison with values trailing spaces#6470
janezd merged 1 commit intobiolab:masterfrom
PrimozGodec:fix-mssql

Conversation

@PrimozGodec
Copy link
Copy Markdown
Contributor

Issue

Loading table fails when values of the column in the table have trailing spaces, and the column interprets as DiscreteVariable since MSSQl ignore trailing spaces while comparing string values.

Description of changes

Add DATALENGTH to groupby comparison to ensure trailing spaces are not ignored while grouping.

Includes
  • Code changes
  • Tests
  • Documentation

@PrimozGodec PrimozGodec marked this pull request as ready for review June 8, 2023 07:14
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 8, 2023

Codecov Report

Merging #6470 (e6bd014) into master (a2c8956) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6470   +/-   ##
=======================================
  Coverage   87.63%   87.63%           
=======================================
  Files         321      321           
  Lines       69281    69281           
=======================================
+ Hits        60715    60716    +1     
+ Misses       8566     8565    -1     

@janezd janezd merged commit c1c55e4 into biolab:master Jun 16, 2023
@PrimozGodec PrimozGodec deleted the fix-mssql branch February 16, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet