Skip to content

[Bug]: FlinkSQL的一部分内置时间函数在使用时,不需要加括号就能直接作为函数使用,但是部分飘红,部分不飘红 #398

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Cythia828 opened this issue Feb 14, 2025 · 1 comment
Assignees

Comments

@Cythia828
Copy link
Collaborator

Version

lasted

Which SQL?

Flink

SQL content

SELECT LOCALTIMESTAMP as time1 from MyTable;

SELECT CURRENT_TIMESTAMP as time1 from MyTable;

JavaScript/TypeScript code

What happened?

  • 现象
Image - flink官方文档 Image - flink链接

https://nightlies.apache.org/flink/flink-docs-release-1.16/zh/docs/dev/table/functions/systemfunctions/#%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0

Relevant log output

@Cythia828 Cythia828 self-assigned this Feb 14, 2025
@Cythia828 Cythia828 changed the title [Bug]: FlinkSQL的内置时间函数在使用时,不需要加括号就能直接作为函数使用,但是部分飘红,部分不飘红 [Bug]: FlinkSQL的一部分内置时间函数在使用时,不需要加括号就能直接作为函数使用,但是部分飘红,部分不飘红 Feb 14, 2025
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this issue Feb 14, 2025
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this issue Feb 14, 2025
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this issue Feb 14, 2025
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this issue Feb 14, 2025
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this issue Feb 14, 2025
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this issue Feb 14, 2025
Cythia828 pushed a commit to Cythia828/dt-sql-parser that referenced this issue Feb 14, 2025
mumiao pushed a commit that referenced this issue Feb 14, 2025
* fix(flink): #398 fix flinksql built-in function's using

* fix(flink): #398 optimize flink g4 rule and sql

---------

Co-authored-by: zhaoge <>
@Cythia828
Copy link
Collaborator Author

已修改 and merged

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant