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

Fixed Energy.toString and mandatory parquet value omission #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

T0mexX
Copy link
Contributor

@T0mexX T0mexX commented Aug 23, 2024

Summary

Before this change, a lower energy value was printed in KJoule and a higher one in Joule. This change reverses it.

Before this change, no exception was thrown when omitting a value in a required parquet field while exporting, resulting in an unreadable parquet file (IDK why the library does not detect this). Now, an exception is thrown as soon as a required value is omitted in one row.

Implementation Notes ⚒️

N/A

External Dependencies 🍀

N/A

Breaking API Changes ⚠️

N/A

Before this change, a lower energy value was printed in KJoule and a
higher one in Joule. This change reverses it.

Before this change no exception was thrown when omitting value in
a required parquet field while exporting, resulting in unreadable
parquet file. Now exception is thrown while exporting.
@T0mexX T0mexX changed the title Added err detection for omitted value in required parquet field Fixed Energy.toString and mandatory parquet value omission Aug 24, 2024
Copy link

codecov bot commented Aug 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 61.11%. Comparing base (f9ffdfb) to head (3a22d9a).

Files Patch % Lines
...org/opendc/trace/util/parquet/exporter/Exporter.kt 0.00% 4 Missing ⚠️
.../src/main/kotlin/org/opendc/common/units/Energy.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #244      +/-   ##
============================================
- Coverage     61.13%   61.11%   -0.02%     
  Complexity     2143     2143              
============================================
  Files           395      395              
  Lines         11518    11521       +3     
  Branches       1179     1180       +1     
============================================
  Hits           7041     7041              
- Misses         4144     4147       +3     
  Partials        333      333              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant