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

feat(StoneDB 8.0): lex->derived_tables & thd->fill_derived_tables() is deleted in MySQL8.0. (#548) #617

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

DandreChen
Copy link
Collaborator

lex->derived_tables & thd->fill_derived_tables() is deleted in MySQL8.0. (#548)

Summary about this PR

Issue Number: close #issue_number_you_created

[summary]
1 thd->fill_derived_tables() is deleted in 8.0, but only be used in tianmu,no other places use itin 5.7
2 lex->derived_tables is deleted in 8.0, it is used to determine whether the current query has derived_tables
3 lex->unit->derived_table means : if this query expression is underlying of a derived table, the derived table. NULL if none.
4 so we use lex->unit->derived_table instead of lex->derived_tables
5 delete the if(0) judge, so we can run the below code

Tests Check List

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Changelog

  • New Feature
  • Bug Fix
  • Improvement
  • Performance Improvement
  • Build/Testing/CI/CD
  • Documentation
  • Not for changelog (changelog entry is not required)

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features

@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the PR-feature feature for pull request label Sep 29, 2022
@DandreChen DandreChen self-assigned this Sep 29, 2022
@DandreChen DandreChen added this to the stonedb_8.0_v1.0.0 milestone Sep 29, 2022
Copy link

@lujiashun lujiashun left a comment

Choose a reason for hiding this comment

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

LGTM

@DandreChen DandreChen changed the title feat(StoneDB 8.0): lex->derived_tables & thd->fill_derived_tables() is deleted in MySQL8.0 feat(StoneDB 8.0): lex->derived_tables & thd->fill_derived_tables() is deleted in MySQL8.0. (#548) Sep 29, 2022
Copy link
Contributor

@RingsC RingsC left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2022

This pull request has merge conflicts, you should resolve it before merged. @DandreChen please update it :)

Try @mergify update or update manually.

…s deleted in MySQL8.0. (stoneatom#548)

[summary]
1 thd->fill_derived_tables() is deleted in 8.0, but only be used in tianmu,no other places use itin 5.7
2 lex->derived_tables is deleted in 8.0, it is used to determine whether the current query has derived_tables
3 lex->unit->derived_table means : if this query expression is underlying of a derived table, the derived table. NULL if none.
4 so we use lex->unit->derived_table instead of  lex->derived_tables
5 delete the if(0) judge, so we can run the below code
@mergify mergify bot merged commit dd8d710 into stoneatom:stonedb-8.0-dev Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-feature feature for pull request
Projects
Development

Successfully merging this pull request may close these issues.

3 participants