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 sqlite reading of empty values #2412

Merged
merged 1 commit into from
Oct 7, 2023
Merged

Conversation

dbueno
Copy link
Contributor

@dbueno dbueno commented May 16, 2023

closes #2411

@quentin
Copy link
Member

quentin commented May 17, 2023

Seems like Github infrastructure was ill when the tests started.

@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Merging #2412 (0f90e25) into master (2914f7b) will increase coverage by 0.01%.
The diff coverage is 61.53%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2412      +/-   ##
==========================================
+ Coverage   77.75%   77.76%   +0.01%     
==========================================
  Files         474      474              
  Lines       31164    31164              
==========================================
+ Hits        24232    24236       +4     
+ Misses       6932     6928       -4     
Impacted Files Coverage Δ
src/include/souffle/utility/SubProcess.h 55.00% <0.00%> (ø)
src/MainDriver.cpp 70.39% <50.00%> (ø)
src/include/souffle/io/ReadStreamSQLite.h 73.26% <50.00%> (ø)
src/ast2ram/seminaive/UnitTranslator.cpp 94.40% <100.00%> (-0.02%) ⬇️
src/ast2ram/utility/Utils.cpp 77.61% <100.00%> (+0.33%) ⬆️

... and 2 files with indirect coverage changes

Copy link
Member

@quentin quentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test would be welcome.

@@ -66,12 +66,12 @@ class ReadStreamSQLite : public ReadStream {
for (column = 0; column < arity; column++) {
std::string element;
if (0 == sqlite3_column_bytes(selectStatement, column)) {
element = "n/a";
element = "";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if it's a numerical column with a NULL value? What is the behavior before and after this change?

@quentin quentin merged commit 5449a78 into souffle-lang:master Oct 7, 2023
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.

SQLite reader silently replaces empty strings with "n/a"
2 participants