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

[poc] low cardinality dictionary on lake #54481

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

zombee0
Copy link
Contributor

@zombee0 zombee0 commented Dec 30, 2024

Why I'm doing:

What I'm doing:

Fixes #issue

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.4
    • 3.3
    • 3.2
    • 3.1
    • 3.0

@zombee0 zombee0 requested review from a team as code owners December 30, 2024 02:32
@wanpengfei-git wanpengfei-git requested a review from a team December 30, 2024 02:33
@zombee0 zombee0 requested a review from a team as a code owner December 30, 2024 02:45
zombee0 added 11 commits January 2, 2025 09:52
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Signed-off-by: zombee0 <[email protected]>
Copy link

sonarqubecloud bot commented Jan 2, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
6.2% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link

github-actions bot commented Jan 2, 2025

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

github-actions bot commented Jan 2, 2025

[BE Incremental Coverage Report]

fail : 16 / 30 (53.33%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 src/exprs/agg/distinct.h 1 5 20.00% [483, 485, 488, 490]
🔵 src/connector/hive_connector.cpp 8 16 50.00% [585, 597, 598, 600, 607, 608, 609, 611]
🔵 src/formats/parquet/group_reader.cpp 3 5 60.00% [383, 384]
🔵 src/common/status.cpp 1 1 100.00% []
🔵 src/exec/hdfs_scanner.cpp 1 1 100.00% []
🔵 src/formats/parquet/file_reader.cpp 1 1 100.00% []
🔵 src/common/status.h 1 1 100.00% []

Copy link

github-actions bot commented Jan 2, 2025

[FE Incremental Coverage Report]

fail : 78 / 382 (20.42%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/sql/optimizer/statistics/ColumnDict.java 0 15 00.00% [54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68]
🔵 com/starrocks/sql/optimizer/statistics/CacheRelaxDictManager.java 0 97 00.00% [48, 49, 50, 51, 54, 57, 58, 64, 66, 67, 69, 70, 71, 73, 76, 77, 78, 79, 80, 83, 84, 86, 89, 90, 91, 92, 102, 106, 107, 108, 109, 110, 112, 113, 116, 120, 121, 122, 123, 126, 130, 131, 133, 134, 135, 136, 137, 139, 144, 145, 147, 148, 149, 150, 153, 158, 159, 160, 162, 163, 164, 167, 172, 173, 174, 176, 177, 178, 181, 182, 183, 186, 187, 189, 190, 191, 192, 194, 195, 196, 198, 202, 204, 205, 208, 209, 210, 214, 219, 220, 221, 223, 224, 225, 226, 228, 230]
🔵 com/starrocks/connector/exception/GlobalDictNotMatchException.java 0 21 00.00% [26, 28, 29, 32, 33, 36, 37, 40, 45, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63]
🔵 com/starrocks/planner/IcebergScanNode.java 0 2 00.00% [318, 319]
🔵 com/starrocks/sql/optimizer/statistics/IRelaxDictManager.java 0 1 00.00% [28]
🔵 com/starrocks/connector/statistics/StatisticsUtils.java 0 3 00.00% [74, 75, 76]
🔵 com/starrocks/qe/ExecuteExceptionHandler.java 0 20 00.00% [62, 63, 101, 102, 103, 105, 106, 107, 108, 109, 110, 111, 113, 114, 119, 122, 123, 124, 125, 126]
🔵 com/starrocks/sql/optimizer/rule/tree/lowcardinality/DecodeRewriter.java 0 46 00.00% [371, 372, 374, 375, 376, 377, 379, 380, 381, 384, 385, 386, 387, 388, 389, 391, 392, 393, 394, 395, 396, 397, 399, 400, 401, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 437, 438, 439, 440, 441, 443, 445, 446]
🔵 com/starrocks/planner/HdfsScanNode.java 1 10 10.00% [163, 164, 165, 166, 167, 169, 170, 296, 297]
🔵 com/starrocks/sql/optimizer/operator/physical/PhysicalHiveScanOperator.java 4 18 22.22% [44, 45, 48, 89, 93, 98, 99, 100, 104, 105, 109, 110, 114, 115]
🔵 com/starrocks/connector/RemoteFilesSampleStrategy.java 11 45 24.44% [36, 37, 38, 39, 41, 42, 43, 44, 45, 48, 52, 56, 64, 65, 66, 67, 76, 77, 78, 80, 81, 82, 85, 86, 87, 88, 89, 90, 92, 93, 94, 97, 98, 101]
🔵 com/starrocks/statistic/StatisticExecutor.java 6 24 25.00% [330, 336, 337, 338, 341, 343, 344, 346, 351, 352, 358, 359, 360, 362, 363, 364, 366, 368]
🔵 com/starrocks/qe/DefaultCoordinator.java 1 2 50.00% [911]
🔵 com/starrocks/connector/ConnectorScanRangeSource.java 5 8 62.50% [38, 44, 45]
🔵 com/starrocks/sql/optimizer/rule/tree/lowcardinality/DecodeCollector.java 32 49 65.31% [153, 627, 637, 643, 644, 645, 648, 649, 652, 653, 656, 657, 658, 659, 660, 661, 662]
🔵 com/starrocks/planner/ScanNode.java 6 8 75.00% [96, 120]
🔵 com/starrocks/sql/plan/PlanFragmentBuilder.java 6 7 85.71% [1090]
🔵 com/starrocks/common/Status.java 1 1 100.00% []
🔵 com/starrocks/sql/optimizer/rule/tree/MarkParentRequiredDistributionRule.java 5 5 100.00% []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants