Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

PrimozGodec
Copy link
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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants