Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-55872

[CX] CBO hints: improve error message for hashjoin probe/build hint if collection is missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • Morpheus
    • 7.2.0
    • analytics
    • 7.2.0-5230

    Description

      With hashjoin probe/build hint, we should improve error message if collection is not specified.

      For example in the following cases (Same for build):

      EXPLAIN SELECT COUNT(DISTINCT r.destinationairport) FROM airport a JOIN route r ON r.sourceairport /*+ hashjoin probe() */ = a.faa WHERE a.city = 'San Francisco' AND a.country = 'United States'; 

      or

      EXPLAIN SELECT COUNT(DISTINCT r.destinationairport) FROM airport a JOIN route r ON r.sourceairport /*+ hashjoin probe */ = a.faa WHERE a.city = 'San Francisco' AND a.country = 'United States'; 

      We get following error which should be more prescriptive e.g. missing collection name.

      'hashjoin probe': 'Invalid specification for hint hashjoin. ASX1001: Syntax error: In line 1 >>probe<< Encountered <EOF> at column 5.  (in line 1, at column 102)'
       
      'hashjoin build': 'Invalid specification for hint hashjoin. ASX1001: Syntax error: In line 1 >>build<< Encountered <EOF> at column 5.  (in line 1, at column 102)',
       
      'hashjoin build()': 'Invalid specification for hint hashjoin. ASX1001: Syntax error: In line 1 >>build()<< Encountered ")" at column 7.  (in line 1, at column 102)'
       
      'hashjoin probe()': 'Invalid specification for hint hashjoin. ASX1001: Syntax error: In line 1 >>probe()<< Encountered ")" at column 7.  (in line 1, at column 102)',

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vijay.sarathy Vijay Sarathy
            pierre.regazzoni Pierre Regazzoni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 80h
                80h
                Remaining:
                Remaining Estimate - 80h
                80h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty