Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5601

[gandiva] Error when projector with a string field

    XMLWordPrintableJSON

Details

    Description

      when I try to select a string field by gandiva projector, it failed with errors.

      import pandas as pd
      import pyarrow as pa
      from pyarrow import gandiva
      
      a = pd.DataFrame({'col1': ["asdf", "abc"]})
      tb = pa.Table.from_pandas(a)
      teb = gandiva.TreeExprBuilder()
      col1 = tb.schema[0]
      node1 = teb.make_field(col1)
      exp1 = teb.make_expression(node1, col1)
      gandiva.make_projector(tb.schema, [exp1], pa.default_memory_pool())
      

      Run the code above, it crashs with error like this:

      
      python: ../lib/IR/Instructions.cpp:1202: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed. Aborted
      

      Attachments

        Issue Links

          Activity

            People

              pravindra Pindikura Ravindra
              sunchenggen Sun Chenggen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 47h 40m
                  47h 40m
                  Logged:
                  Remaining Estimate - 47h 40m
                  20m