Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8278

The period character '.' is broken in SQL LIKE patterns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.20.2
    • 1.20.3
    • SQL Parser
    • None

    Description

      In LIKE patterns, the period character is treated as a wildcard when it should act as a simple literal.

       

      apache drill> show databases where schema_name like 'dfs.%';
      SCHEMA_NAME  dfs.default
      SCHEMA_NAME  dfs.root
      SCHEMA_NAME  dfs.tmp
      SCHEMA_NAME  dfsfoo.default -- should not be present
      SCHEMA_NAME  dfsfoo.root    -- should not be present
      SCHEMA_NAME  dfsfoo.tmp     -- should not be present
      
      6 rows selected (0.256 seconds)
      

      Attachments

        Activity

          People

            dzamo James Turton
            dzamo James Turton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: