Skip to content

JSQLParser Version : 4.4 hql alter table can not be parsed #1524

Closed

Description

@zhumin-zizhu

SQL Example

  • Simplyfied Query Exmple, focusing on the failing feature
 ALTER TABLE tablename add column (field  string)

Software Information

  • JSqlParser version
  • Database (hive )

Activity

  1. manticore-projects commented on May 1, 2022

    @manticore-projects
    Contributor

    Greetings.

    Thank you for your report. Unfortunately HIVE seems to prefer its own SQL dialect far away from the SQL Standard:

    ALTER TABLE name ADD COLUMNS (col_spec[, col_spec ...])

    Pay attention to the COLUMNS keyword.

    Its not supported by JSQLParser and you would need to either send a PR or sponsor an implementation to make Hive support happening.

  2. manticore-projects commented on May 1, 2022

    @manticore-projects
    Contributor

    From https://www.ibm.com/analytics/hadoop/hive: "Hive enables SQL developers to write Hive Query Language (HQL) statements that are similar to standard SQL statements for data query and analysis."

    Emphasis is on similar. I

  3. added a commit that references this issue on Jul 30, 2022
  4. added a commit that references this issue on Aug 3, 2022
  5. added a commit that references this issue on Aug 4, 2022
  6. zhumin-zizhu commented on Aug 4, 2022

    @zhumin-zizhu
    ContributorAuthor

    Has been resolved

  7. added a commit that references this issue on Aug 14, 2022
  8. added a commit that references this issue on Aug 18, 2022
  9. added a commit that references this issue on Oct 25, 2022
  10. added a commit that references this issue on Jan 20, 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