Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24565

Implement standard trim function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Parser, UDF

    Description

      <trim function> ::=
      TRIM <left paren> <trim operands> <right paren>
      
      <trim operands> ::=
      [ [ <trim specification> ] [ <trim character> ] FROM ] <trim source>
      
      <trim source> ::=
      <character value expression>
      
      <trim specification> ::=
      LEADING
      | TRAILING
      | BOTH
      
      <trim character> ::=
      <character value expression>
      

      Example

      SELECT TRIM(LEADING '0' FROM '000123');
      123
      

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m