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

[C++][Substrait] "ignore_unknown_fields" should be specified when converting JSON to binary

    XMLWordPrintableJSON

Details

    Description

      https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.util.json_util#JsonParseOptions

       

      When converting a substrait JSON to binary, there are many unknown fields that may exist since substrait is being built every week. ignore_unknown_fields should be specified when doing this conversion.

       

      This is resulting in frequent errors similar to this:

      E   pyarrow.lib.ArrowInvalid: JsonToBinaryStream returned INVALID_ARGUMENT:(relations[0].root.input.sort.input.aggregate.measures[0].measure) arguments: Cannot find field.
      
      pyarrow/error.pxi:100: ArrowInvalid 

      Attachments

        Issue Links

          Activity

            People

              vibhatha Vibhatha Lakmal Abeykoon
              richtia Richard Tia
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 3h 10m
                  3h 10m