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

Add max,min and first aggregation support for table model #13804

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

Beyyes
Copy link
Member

@Beyyes Beyyes commented Oct 17, 2024

Description

as the title, support more aggregation functions, example sql: select first(time),first(device),first(level),first(attr1),first(attr2),first(num),first(bignum),first(floatnum),first(str),first(bool),first(date),first(blob),first(ts),first(stringv) from table0 where device='d1' and level='l4'


This PR has:

  • been self-reviewed.
    • concurrent read
    • concurrent write
    • concurrent read and write
  • added documentation for new or modified features or behaviors.
  • added Javadocs for most classes and all non-trivial methods.
  • added or updated version, license, or notice information
  • added comments explaining the "why" and the intent of the code wherever would not be obvious
    for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold
    for code coverage.
  • added integration tests.
  • been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

Copy link

sonarcloud bot commented Oct 17, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
28.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

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

Project coverage is 40.56%. Comparing base (600a798) to head (9d88bbf).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...ource/relational/aggregation/FirstAccumulator.java 0.00% 184 Missing ⚠️
.../source/relational/aggregation/MaxAccumulator.java 0.00% 153 Missing ⚠️
.../source/relational/aggregation/MinAccumulator.java 0.00% 153 Missing ⚠️
...rce/relational/aggregation/AccumulatorFactory.java 0.00% 3 Missing ⚠️
...source/relational/aggregation/LastAccumulator.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13804      +/-   ##
============================================
- Coverage     40.67%   40.56%   -0.11%     
  Complexity       71       71              
============================================
  Files          4078     4082       +4     
  Lines        256065   256660     +595     
  Branches      31237    31297      +60     
============================================
- Hits         104144   104120      -24     
- Misses       151921   152540     +619     

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

@JackieTien97 JackieTien97 merged commit c802367 into master Oct 17, 2024
38 of 40 checks passed
@JackieTien97 JackieTien97 deleted the add_max_min_support branch October 17, 2024 11:29
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