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

[CALCITE-5536] Clean up some of the magic numbers in AvaticaResultSetConversionsTest and AbstractCursor #208

Closed
wants to merge 1 commit into from

Conversation

wnob
Copy link
Contributor

@wnob wnob commented Feb 15, 2023

Turn a bunch of magic numbers into named constants without changing any values, and add extra comments where appropriate.

In AvaticaResultSetConversionsTest, I renamed DEFAULT_CALENDAR to UTC_CALENDAR because that's a more accurate name. The definition of DateTimeUtils.calendar() is Calendar.getInstance(UTC_ZONE, Locale.ROOT).

@F21
Copy link
Member

F21 commented Feb 16, 2023

@wnob Can you open a jira issue for this?

@wnob wnob changed the title Purely cosmetic test refactor [CALCITE-5536] Purely cosmetic test refactor Feb 17, 2023
@@ -173,14 +173,14 @@ protected Accessor createAccessor(ColumnMetaData columnMetaData,
default:
throw new AssertionError("bad " + columnMetaData.type.rep);
}
case 2013: // TIME_WITH_TIMEZONE
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit:
While these changes are fine, they do not agree with the commit message. (i.e this is not a test refactor)

Copy link
Contributor

Choose a reason for hiding this comment

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

Change the commit message to [CALCITE-5536] Clean up some of the magic numbers in AvaticaResultSetConversionsTest and AbstractCursor and I think we're good.

@wnob wnob changed the title [CALCITE-5536] Purely cosmetic test refactor [CALCITE-5536] Purely cosmetic refactor Feb 17, 2023
@wnob wnob changed the title [CALCITE-5536] Purely cosmetic refactor [CALCITE-5536] Clean up some of the magic numbers in AvaticaResultSetConversionsTest and AbstractCursor Feb 17, 2023
@stoty
Copy link
Contributor

stoty commented Nov 13, 2023

You have only changed the PR name, and not the commit message, @wnob.
I'm going to change the commit message, and commit this with the agreed upon commit message.

@stoty
Copy link
Contributor

stoty commented Nov 13, 2023

Committed with fixed commit message.

@stoty stoty closed this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants