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

[SPARK-48303][CORE] Reorganize LogKeys #46612

Closed
wants to merge 1 commit into from

Conversation

panbingkun
Copy link
Contributor

@panbingkun panbingkun commented May 16, 2024

What changes were proposed in this pull request?

The pr aims to reorganize LogKeys, includes:

  • remove some unused LogLeys
    ACTUAL_BROADCAST_OUTPUT_STATUS_SIZE
    DEFAULT_COMPACTION_INTERVAL
    DRIVER_LIBRARY_PATH_KEY
    EXISTING_JARS
    EXPECTED_ANSWER
    FILTERS
    HAS_R_PACKAGE
    JAR_ENTRY
    LOG_KEY_FILE
    NUM_ADDED_MASTERS
    NUM_ADDED_WORKERS
    NUM_PARTITION_VALUES
    OUTPUT_LINE
    OUTPUT_LINE_NUMBER
    PARTITIONS_SIZE
    RULE_BATCH_NAME
    SERIALIZE_OUTPUT_LENGTH
    SHELL_COMMAND
    STREAM_SOURCE

  • merge PARAMETER into PARAM (because some are full spelled, and some are abbreviations, which are not unified)
    ESTIMATOR_PARAMETER_MAP -> ESTIMATOR_PARAM_MAP
    FUNCTION_PARAMETER -> FUNCTION_PARAM
    METHOD_PARAMETER_TYPES -> METHOD_PARAM_TYPES

  • merge NUMBER into NUM (abbreviations)
    MIN_VERSION_NUMBER -> MIN_VERSION_NUM
    RULE_NUMBER_OF_RUNS -> NUM_RULE_OF_RUNS
    VERSION_NUMBER -> VERSION_NUM

  • merge TOTAL into NUM
    TOTAL_RECORDS_READ -> NUM_RECORDS_READ
    TRAIN_WORD_COUNT -> NUM_TRAIN_WORD

  • NUM as prefix
    CHECKSUM_FILE_NUM -> NUM_CHECKSUM_FILE
    DATA_FILE_NUM -> NUM_DATA_FILE
    INDEX_FILE_NUM -> NUM_INDEX_FILE

  • COUNR -> NUM
    EXECUTOR_DESIRED_COUNT -> NUM_EXECUTOR_DESIRED
    EXECUTOR_LAUNCH_COUNT -> NUM_EXECUTOR_LAUNCH
    EXECUTOR_TARGET_COUNT -> NUM_EXECUTOR_TARGET
    KAFKA_PULLS_COUNT -> NUM_KAFKA_PULLS
    KAFKA_RECORDS_PULLED_COUNT -> NUM_KAFKA_RECORDS_PULLED
    MIN_FREQUENT_PATTERN_COUNT -> MIN_NUM_FREQUENT_PATTERN
    POD_COUNT -> NUM_POD
    POD_SHARED_SLOT_COUNT -> NUM_POD_SHARED_SLOT
    POD_TARGET_COUNT -> NUM_POD_TARGET
    RETRY_COUNT -> NUM_RETRY

  • fix some typo
    MALFORMATTED_STIRNG -> MALFORMATTED_STRING

  • other
    MAX_LOG_NUM_POLICY -> MAX_NUM_LOG_POLICY
    WEIGHTED_NUM -> NUM_WEIGHTED_EXAMPLES

Changes in other code are additional changes caused by the above adjustments.

Why are the changes needed?

Let's make LogKeys easier to understand and more consistent.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass GA.

Was this patch authored or co-authored using generative AI tooling?

No.

@panbingkun panbingkun changed the title [SPARK-48303][CORE] Reorganize LogKey [SPARK-48303][CORE] Reorganize LogKeys May 17, 2024
@panbingkun
Copy link
Contributor Author

cc @gengliangwang

@panbingkun panbingkun marked this pull request as ready for review May 17, 2024 01:23
@gengliangwang
Copy link
Member

Thanks for the improvement! Merging to master

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