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-6034] Add isAutoIncrement and isGenerated arguments to MetaColumn constructor #229

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

tjbanghart
Copy link
Contributor

No description provided.

@tanclary
Copy link

tanclary commented Oct 5, 2023

nit: update commit message and PR description to be imperative (adds -> add)


@Deprecated // to be removed before 2.0

Choose a reason for hiding this comment

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

I assume this is the constructor that was failing when building Calcite?

Integer charOctetLength,
int ordinalPosition,
String isNullable,
String isAutoincrement,

Choose a reason for hiding this comment

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

is auto-increment one word? Do you camelCase hyphenated words? Interesting..

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I guess that's the convention! I see the same in Calcite so probably won't change it here.


/** Returns a copy of this MetaColumn, overriding the value of {@code isAutoincrement}. */
@SuppressWarnings("unused") // called from Calcite
public MetaColumn withIsAutoIncrement(String isAutoincrement) {

Choose a reason for hiding this comment

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

I would make it consistent either do AutoIncremeent or Autoincrement everywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol, I thought about this for too long. I'll change it for consistency.

Copy link

@tanclary tanclary left a comment

Choose a reason for hiding this comment

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

Left a question and comment

Copy link

@tanclary tanclary left a comment

Choose a reason for hiding this comment

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

LGTM, if you squash your commits I can merge : )

@tjbanghart tjbanghart changed the title [CALCITE-6034] Adds isAutoIncrement and isGenerated arguments to MetaColumn constructor [CALCITE-6034] Add isAutoIncrement and isGenerated arguments to MetaColumn constructor Oct 12, 2023
@tjbanghart tjbanghart merged commit 519d1ce into main Oct 25, 2023
12 checks passed
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