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

IGNITE-24021 Sql. Merged duplicate code in QualifiedName and IgniteNameUtils #5218

Merged
merged 7 commits into from
Feb 19, 2025

Conversation

xtern
Copy link
Contributor

@xtern xtern commented Feb 12, 2025

https://issues.apache.org/jira/browse/IGNITE-24021

  • Tokenizer from QualifiedName moved to IgniteNameUtils.
  • IgniteNameUtils.parseSimpleName(name) renamed to parseIdentifier(identifier) and doesn't accept null/empty names anymore.
  • Introduced public List<String> IgniteNameUtils.parseName(name) for parsing fully qualified canonical names (this is used by QualifiedName to parse input).
  • quote(name) is now private, and its usage in the codebase has been replaced with quoteIfNeeded(name).

@xtern xtern force-pushed the ignite-24021 branch 3 times, most recently from 642de15 to 83dfbfd Compare February 13, 2025 20:30
@xtern xtern marked this pull request as ready for review February 13, 2025 20:32
@xtern xtern changed the title IGNITE-24021 IGNITE-24021 Sql. Merged duplicate code in QualifiedName and IgniteNameUtils Feb 13, 2025
return new QualifiedName(schemaName == null ? DEFAULT_SCHEMA_NAME : schemaName, objectName);
}


Copy link
Contributor

Choose a reason for hiding this comment

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

I think this empty line is unnecessary

Copy link
Contributor Author

@xtern xtern Feb 14, 2025

Choose a reason for hiding this comment

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

Fixed, thanks.

@xtern xtern merged commit 130c4a1 into apache:main Feb 19, 2025
1 check passed
@xtern xtern deleted the ignite-24021 branch February 19, 2025 05:58
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.

3 participants