Skip to content

Use constants for tables instead of string literals#3089

Merged
ctubbsii merged 1 commit intoapache:mainfrom
ctubbsii:use-constants
Nov 22, 2022
Merged

Use constants for tables instead of string literals#3089
ctubbsii merged 1 commit intoapache:mainfrom
ctubbsii:use-constants

Conversation

@ctubbsii
Copy link
Copy Markdown
Member

Use existing constants for referencing the table names and IDs for built-in tables in a few places that previously used hard-coded string literals. These aren't likely to change, but it makes it easier to find references of these built-ins when they use the constant, and it's easier to avoid typos.

I found these while working on #3080. They are very trivial, but nice to have.

Use existing constants for referencing the table names and IDs for
built-in tables in a few places that previously used hard-coded string
literals. These aren't likely to change, but it makes it easier to find
references of these built-ins when they use the constant, and it's
easier to avoid typos.
@ctubbsii ctubbsii self-assigned this Nov 21, 2022
@ctubbsii ctubbsii merged commit f8b7b03 into apache:main Nov 22, 2022
@ctubbsii ctubbsii deleted the use-constants branch November 22, 2022 04:27
@ctubbsii ctubbsii added this to the 3.0.0 milestone Jul 12, 2024
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