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

RD 10961 + RD 10948 fixes #434

Merged
merged 6 commits into from
May 30, 2024
Merged

Conversation

alexzerntev
Copy link
Contributor

  • Added support for multiline strings and quoted identifiers
  • Fixed the position out of grid crash

@alexzerntev alexzerntev requested a review from bgaidioz May 29, 2024 15:45
val ValidateResponse(errors) = compilerService.validate(q, asJson())
assert(errors.nonEmpty)
}

test("""RD-10948"""){_ =>
test("""RD-10948""") { _ =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's not forget to remove that test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I alternated it as we discussed

| (2, 'Jane', 'Doe', DATE '2024-01-01')
|) as i(id, first_name, last_name, birthday)
|WHERE id = :id && id = :
|""".stripMargin
val ValidateResponse(errors) = compilerService.validate(q, asJson())
assert(errors.nonEmpty)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The test would crash during the line before. What error does one get now?

Copy link
Contributor Author

@alexzerntev alexzerntev May 30, 2024

Choose a reason for hiding this comment

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

syntax error at or near "="
Is this error expected?

@bgaidioz
Copy link
Collaborator

This test:

test("Test multiple param occurrences")

fails. This is new. I see the test code contains an extra " in the end (the triple quoted string containing the query ends with """"). I imagine it's due to that?

@alexzerntev alexzerntev merged commit dc414ad into RD-10961+RD-10948 May 30, 2024
7 checks passed
@alexzerntev alexzerntev deleted the RD-10961+RD-10948-fixes branch May 30, 2024 08:25
bgaidioz pushed a commit that referenced this pull request May 30, 2024
- Added support for multiline strings and quoted identifiers
- Fixed the position out of grid crash
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.

2 participants