Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2593 Filter by a boolean value does not work
  3. PIG-2736

Support implicit cast from bytearray to boolean

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11
    • None
    • None
    • Reviewed

    Description

      	
      a = load 'allscalar10k' as (name, age, gpa, instate);
      b = filter a by instate==TRUE;
      dump b; 	
      

      Error:In alias b, incompatible types in Equal Operator left hand side:bytearray right hand side:boolean

      Currently we only support implicit conversion from bytearray to chararray and number types (int,long,float,double). We need to add support for boolean as well.

      Attachments

        1. PIG-2736.0.patch
          2 kB
          Jie Li

        Activity

          People

            jay23jack Jie Li
            jay23jack Jie Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: