-
Notifications
You must be signed in to change notification settings - Fork 20
Add dictionary c data integration tests #451
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
Changes from all commits
7a5cb37
356692c
da3fa11
f138bed
fa2e5b5
5d78a0d
c10fd9f
cf713a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,27 +54,28 @@ namespace sparrow::c_data_integration | |
); | ||
} | ||
|
||
if ((schema->name != nullptr) || (schema_from_json->name != nullptr)) | ||
{ | ||
if ((schema->name != nullptr) != (schema_from_json->name != nullptr)) | ||
{ | ||
differences.push_back( | ||
prefix_with_name | ||
+ " name mismatch: pointer=" + std::string(schema->name ? schema->name : "nullptr") | ||
+ " vs json=" + std::string(schema_from_json->name ? schema_from_json->name : "nullptr") | ||
); | ||
} | ||
else if (schema->name != nullptr && schema_from_json->name != nullptr) | ||
{ | ||
if (std::strcmp(schema->name, schema_from_json->name) != 0) | ||
{ | ||
differences.push_back( | ||
prefix_with_name + " name mismatch: pointer=" + std::string(schema->name) | ||
+ " vs json=" + std::string(schema_from_json->name) | ||
); | ||
} | ||
} | ||
} | ||
// if ((schema->name != nullptr) || (schema_from_json->name != nullptr)) | ||
// { | ||
// if ((schema->name != nullptr) != (schema_from_json->name != nullptr)) | ||
// { | ||
// differences.push_back( | ||
// prefix_with_name | ||
// + " name mismatch: pointer=" + std::string(schema->name ? schema->name : "nullptr") | ||
// + " vs json=" + std::string(schema_from_json->name ? schema_from_json->name : | ||
// "nullptr") | ||
// ); | ||
// } | ||
// else if (schema->name != nullptr && schema_from_json->name != nullptr) | ||
// { | ||
// if (std::strcmp(schema->name, schema_from_json->name) != 0) | ||
// { | ||
// differences.push_back( | ||
// prefix_with_name + " name mismatch: pointer=" + std::string(schema->name) | ||
// + " vs json=" + std::string(schema_from_json->name) | ||
// ); | ||
// } | ||
// } | ||
// } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why commenting this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have to remove it, but the thing is that the dictionary name produced by the C++ implementation doesn't follow the other layout and it's a pain to compare There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you don't plan to reintroduce it (or reimplement it somehow) this code can be deleted for good. |
||
if (schema->flags != schema_from_json->flags) | ||
{ | ||
differences.push_back( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why dropping this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was unused and useless