Skip to content

Conversation

@inv-jishnu
Copy link
Contributor

@inv-jishnu inv-jishnu commented Dec 3, 2024

Description

This PR adds enum, constants (messages) and DTO classes that will be used in the data loader.

They are handled in separate PR now so that we can speed up the merge and start with the core code for the export process.

Related issues and/or PRs

NA

Changes made

Added below for data loader

  • Enum classes
  • Constants for messages
  • DTO class

Checklist

The following is a best-effort checklist. If any items in this checklist are not applicable to this PR or are dependent on other, unmerged PRs, please still mark the checkboxes after you have read and understood each item.

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes.
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

This PR is part of the on-going process of merging all ScalarDB Data Loader code into the main repository.

Release notes

NA

@inv-jishnu inv-jishnu added the enhancement New feature or request label Dec 3, 2024
@inv-jishnu inv-jishnu marked this pull request as draft December 3, 2024 10:41
@ypeckstadt ypeckstadt self-assigned this Dec 4, 2024
@ypeckstadt ypeckstadt marked this pull request as ready for review December 11, 2024 09:40
Copy link
Contributor

@Torch3333 Torch3333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Copy link
Contributor

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

I left a minor comment, but it doesn't block this PR from being merged.

public static final String IMPORT_LOG_ENTRY_STATUS_FIELD = "data_loader_import_status";
public static final String TABLE_LOOKUP_KEY_FORMAT = "%s.%s";

public static final String LOG_UPDATE_SUCCESS = "Row %s has been updated in table %s.%s";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this will be used like String.format(LOG_UPDATE_SUCCESS, namespace, table), but IntelliJ doesn't detect parameter mismatch like String.format(LOG_UPDATE_SUCCESS, namespace) in this way. It might be a slight drawback.

@feeblefakie feeblefakie self-requested a review December 12, 2024 06:49
Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ypeckstadt ypeckstadt merged commit ea156cc into master Dec 13, 2024
48 checks passed
feeblefakie pushed a commit that referenced this pull request Dec 13, 2024
Co-authored-by: Peckstadt Yves <peckstadt.yves@gmail.com>
feeblefakie pushed a commit that referenced this pull request Dec 13, 2024
Co-authored-by: Peckstadt Yves <peckstadt.yves@gmail.com>
feeblefakie pushed a commit that referenced this pull request Dec 13, 2024
Co-authored-by: Peckstadt Yves <peckstadt.yves@gmail.com>
feeblefakie pushed a commit that referenced this pull request Dec 13, 2024
Co-authored-by: Peckstadt Yves <peckstadt.yves@gmail.com>
feeblefakie pushed a commit that referenced this pull request Dec 13, 2024
Co-authored-by: Peckstadt Yves <peckstadt.yves@gmail.com>
feeblefakie pushed a commit that referenced this pull request Dec 13, 2024
Co-authored-by: Peckstadt Yves <peckstadt.yves@gmail.com>
@brfrn169 brfrn169 deleted the feat/dataloader/enum branch December 13, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants