Skip to content

IGNITE-28223 Provide the ability to add pseudo columns to tables for Calcite engine#12893

Open
tkalkirill wants to merge 18 commits intomasterfrom
ignite-28223
Open

IGNITE-28223 Provide the ability to add pseudo columns to tables for Calcite engine#12893
tkalkirill wants to merge 18 commits intomasterfrom
ignite-28223

Conversation

@tkalkirill
Copy link
Contributor

int scale();

/** @return Precision of pseudocolumn type, {@value #NOT_SPECIFIED} if not specified. */
int precision();
Copy link
Contributor

Choose a reason for hiding this comment

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

It is inconvenient when two fields have the same constant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why?
The constant is a fairly universal and understandable constant.
I asked the copilot, and he said it's OK.

Copy link
Contributor

Choose a reason for hiding this comment

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

I was glad to see that you reinforce your viewpoint even if it is an electrical mind.


/** */
private void checkPseudoColumns(CreateTableCommand cmd) {
PseudoColumnProvider pseudoColProv = cacheProc.context().kernalContext().plugins().createComponentOrDefault(
Copy link
Contributor

Choose a reason for hiding this comment

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

Same default in all places where you call createcomponent. Let's bring it inside the method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Into which method? Please give more specifics.

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 it might not be necessary to carry around the EMPTY constant. Is there really no way to encapsulate it in the method createComponent?

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5 New Code Smells (required ≤ 1)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@tkalkirill tkalkirill requested a review from vldpyatkov March 24, 2026 10:55
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