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

Fix PostgreSQL and openGauss time extract function parse week and quarter error #33564

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

lcfliuxi
Copy link

@lcfliuxi lcfliuxi commented Nov 6, 2024

Fixes #33452.

Changes proposed in this pull request:


Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.

@strongduanmu
Copy link
Member

Hi @lcfliuxi, can you fix the ci error?

@lcfliuxi
Copy link
Author

lcfliuxi commented Nov 7, 2024

Ok, I will try it.

@lcfliuxi
Copy link
Author

lcfliuxi commented Nov 7, 2024

Hi @strongduanmu, I fix the ci error, pls help review again thank you.

@@ -262,8 +262,6 @@
<sql-case id="unsupported_select_case_for_opengauss_438" value="select B'101' | as result;" db-types="openGauss" />
<sql-case id="unsupported_select_case_for_opengauss_439" value="select B'101' # as result;" db-types="openGauss" />
<sql-case id="unsupported_select_case_for_opengauss_440" value="select B'11110' # B'0000';" db-types="openGauss" />
<sql-case id="unsupported_select_case_for_opengauss_443" value="select extract(quarter from timestamp '2001-02-16 20:38:40') from sys_dummy;" db-types="openGauss" />
Copy link
Member

Choose a reason for hiding this comment

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

Hi @lcfliuxi, can you move these two cases to supportes.xml and add expected file.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, but is it duplicate with this?
image

Copy link
Author

Choose a reason for hiding this comment

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

Hi @lcfliuxi, can you move these two cases to supportes.xml and add expected file.

Hi @strongduanmu, I added this, pls help review again thank you.

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.

SQL syntax exception occurs when execute SELECT EXTRACT(WEEK FROM TIMESTAMP '2001-02-16 20:38:40');
2 participants