Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11146

SQL: QueryIndex and DDL generate indexes with different default names

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • sql
    • None
    • Docs Required

    Description

      `QueryIndex` with a name set and `CREATE INDEX` without a specified name create indexes with different names, even if all parameters are the same - `CREATE INDEX` produces a lower-case name, and `QueryIndex` produces an upper-case one.

      For example

      new QueryIndex("a")
      

      in a table "Foo" creates an index with name

      FOO_A_ASC_IDX
      

      while the query

      CREATE INDEX ON PUBLIC.FOO (a)
      

      creates an index

      foo_a_asc_idx
      

      It would be better if DDL generated an upper-case name since that's the default in SQL.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slukyanov Stanislav Lukyanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: