Skip to content

StringIndexOutOfBoundsException for LEFT() and RIGHT()[BUG] #266

@ghost

Description

Describe the bug
StringIndexOutOfBoundsException is thrown when the second of argument of LEFT and RIGHT functions is greater than the length of the first argument.

Or for query issues:

  1. Run the query 'SELECT LEFT("Hello", 6)'
  2. See error 'StringIndexOutOfBoundsException'

Expected behavior
The output should be the whole string when the second argument is greater than or equal to the length of the string.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQLbugSomething isn't workingtdvtTableau test framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions