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

JPQL and HQL parser issue with class projection when FQDN includes "exp" #3451

Closed
jgooley-sh opened this issue Apr 26, 2024 · 1 comment
Closed
Assignees
Labels
type: bug A general bug

Comments

@jgooley-sh
Copy link

jgooley-sh commented Apr 26, 2024

Version: Latest 3.1.x

It appears that when using class based projection we can't have exp in our package name.

select new com.company.exp.thing.stuff.ClassName(
  e.id,
  cast(round(coalesce(SUM(e.amount), 0),2) as decimal) as amountTotal
)
from Experience e
group by e.id

Antlr output:

line 1:22 mismatched input '.' expecting '('
line 1:32 mismatched input '.' expecting {, ',', EXCEPT, FROM, GROUP, INTERSECT, ORDER, UNION, WHERE}

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 26, 2024
@christophstrobl christophstrobl self-assigned this Apr 29, 2024
@christophstrobl
Copy link
Member

@jgooley-sh thanks for reporting - we'll look into this.

@christophstrobl christophstrobl added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 29, 2024
@mp911de mp911de added this to the 3.1.12 (2023.0.12) milestone Apr 30, 2024
mp911de pushed a commit that referenced this issue Apr 30, 2024
… reserved exp keyword.

Resolves: #3451
Original pull request: #3457
mp911de added a commit that referenced this issue Apr 30, 2024
…n reserved words.

Resolves: #3451
Original pull request: #3457
mp911de pushed a commit that referenced this issue Apr 30, 2024
…n reserved words.

Resolves: #3451
Original pull request: #3457
mp911de pushed a commit that referenced this issue Apr 30, 2024
… reserved exp keyword.

Resolves: #3451
Original pull request: #3457
mp911de added a commit that referenced this issue Apr 30, 2024
…n reserved words.

Resolves: #3451
Original pull request: #3457
mp911de pushed a commit that referenced this issue Apr 30, 2024
…n reserved words.

Resolves: #3451
Original pull request: #3457
mp911de pushed a commit that referenced this issue Apr 30, 2024
… reserved exp keyword.

Resolves: #3451
Original pull request: #3457
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
4 participants