GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Parsing DROP MATERIALIZED VIEW is not supported · Issue #1685 · JSQLParser/JSqlParser

Parsing DROP MATERIALIZED VIEW is not supported #1685

New issue
Copy link
New issue
Copy link
Closed
Closed
Parsing DROP MATERIALIZED VIEW is not supported#1685
Copy link

Description

@zaza
zaza
opened on Dec 6, 2022
Issue body actions

Parsing statement for dropping a materialized view e.g. "DROP MATERIALIZED VIEW foo" results in an error:

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "MATERIALIZED" "MATERIALIZED"
    at line 1, column 6.

Was expecting one of:

    "INDEX"
    "SCHEMA"
    "SEQUENCE"
    "TABLE"
    "VIEW"
    <S_IDENTIFIER>

	at app//net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:31468)
	at app//net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:31301)
	at app//net.sf.jsqlparser.parser.CCJSqlParser.Drop(CCJSqlParser.java:16562)
	at app//net.sf.jsqlparser.parser.CCJSqlParser.SingleStatement(CCJSqlParser.java:291)
	at app//net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:153)
	at app//net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:188)
	... 88 more

Parsing "DROP VIEW foo" with "MATERIALIZED" removed, works fine.

Activity

  1. wumpz commented on Dec 10, 2022

    @wumpz
    wumpz
    on Dec 10, 2022
    Member
    More actions

    This feature is not supported. Do you want to provide a PR?

  2. zaza commented on Jan 8, 2023

    @zaza
    zaza
    on Jan 8, 2023
    ContributorAuthor
    More actions

    Yes, a PR is up and ready for review.

  3. zaza commented on Jan 12, 2023

    @zaza
    zaza
    on Jan 12, 2023
    ContributorAuthor
    More actions

    Fixed in #1711

  4. zaza
    closed this as completedon Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.