Skip to content

[FLINK-3486] [tableAPI] Fix broken renaming of all fields.#1738

Closed
fhueske wants to merge 2 commits intoapache:tableOnCalcitefrom
fhueske:tableAllRenameFix
Closed

[FLINK-3486] [tableAPI] Fix broken renaming of all fields.#1738
fhueske wants to merge 2 commits intoapache:tableOnCalcitefrom
fhueske:tableAllRenameFix

Conversation

@fhueske
Copy link
Copy Markdown
Contributor

@fhueske fhueske commented Feb 29, 2016

No description provided.

if(relNode == projected) {
// Calcite's RelBuilder does not translate identity projects even if they rename fields.
// Add a projection ourselves (will be automatically removed by translation rules).
val names = exprs.map(_.asInstanceOf[RexCall].getOperands.get(1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This cast to RexCall seems to cause several tests to fail.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Woops!
Thanks, I'll check that.

@fhueske
Copy link
Copy Markdown
Contributor Author

fhueske commented Feb 29, 2016

I fixed the failing tests.

@fhueske
Copy link
Copy Markdown
Contributor Author

fhueske commented Mar 3, 2016

Will merge this to tableOnCalcite branch.

@fhueske
Copy link
Copy Markdown
Contributor Author

fhueske commented Mar 3, 2016

Merged to tableOnCalcite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants