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

fix issue with converting text to string in MetadataConstraints in 3.x #4897

Open
wants to merge 2 commits into
base: 3.1
Choose a base branch
from

Conversation

kevinrr888
Copy link
Member

No description provided.

@kevinrr888 kevinrr888 self-assigned this Sep 17, 2024
@kevinrr888 kevinrr888 added this to the 3.1.0 milestone Sep 17, 2024
@@ -369,8 +369,7 @@ private void validateServerFamily(ArrayList<Short> violations, ColumnUpdate colu
private void validateSuspendLocationFamily(ArrayList<Short> violations,
ColumnUpdate columnUpdate) {
String qualStr = new String(columnUpdate.getColumnQualifier(), UTF_8);
String suspendColQualStr =
new String(SuspendLocationColumn.SUSPEND_COLUMN.getColumnQualifier().getBytes(), UTF_8);
String suspendColQualStr = SuspendLocationColumn.SUSPEND_COLUMN.getColumnQualifier().toString();
Copy link
Contributor

Choose a reason for hiding this comment

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

We could make a constant for this String. For this case do not need to keep recomputing the string. Could add that constant to the SuspendLocationColumn.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added. Also checked the other columns in MetadataSchema; SuspendLocationColumn was the only one that wasn't consistent

made the Text name and qualifier string accessible through
SuspendLocationColumn; accessed in MetadataConstraints
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