Skip to content

Conversation

@electrum
Copy link
Member

@electrum electrum commented Dec 1, 2025

Use BailErrorStrategy as recommended by the ANTLR team in antlr/antlr4#192

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

This comment was marked as outdated.

Use BailErrorStrategy as recommended by the ANTLR team.
@github-actions github-actions bot added the delta-lake Delta Lake connector label Dec 1, 2025
@electrum electrum requested a review from Copilot December 1, 2025 04:30
Copilot finished reviewing on behalf of electrum December 1, 2025 04:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@electrum electrum requested a review from Copilot December 1, 2025 16:46
Copilot finished reviewing on behalf of electrum December 1, 2025 16:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@martint martint left a comment

Choose a reason for hiding this comment

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

Do you have any (micro-)benchmark results for this change?

catch (ParsingException ex) {
catch (ParseCancellationException e) {
// if we fail, parse with LL mode
tokenStream.seek(0); // rewind input stream
Copy link
Member

Choose a reason for hiding this comment

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

Why did this disappear?

Copy link
Member Author

Choose a reason for hiding this comment

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

The Parser.reset() method already does this

@electrum
Copy link
Member Author

electrum commented Dec 1, 2025

This is more about doing it in the correct way, that could theoretically improve performance. I don't actually care about the performance and didn't bother to benchmark it. This could alternatively be titled

Use BailErrorStrategy for ANTLR two-stage parsing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector

Development

Successfully merging this pull request may close these issues.

2 participants