quickwit-oss / quickwit-oss/quickwit

Doc processing error with an object mapping and null value

Open
#3,670 3 comments 0 reactions 1 assignee View on GitHub

@fatelei is already working on this.

Since Oct 10, 2023.

bug good first issue
Dominant language
Rust
Stars
11.7k
Forks
597
Avg merge
2d 22h
Merged PRs (30d)
37

Description

While indexing GH archive dataset, I got this error:

2023-07-20T07:24:14.984Z  WARN quickwit_indexing::actors::doc_processor: error=ValueError("payload.pull_request.head.repo", "Expected an JSON Object, got null")

Here is the mapping:

doc_mapping:
  field_mappings:
    - name: id
      type: text
    - name: type
      type: text
      fast: true
    - name: actor
      type: object
      field_mappings:
      - name: login
        fast: true
        type: text
    - name: payload
      type: object
      field_mappings:
      - name: description
        type: text
        tokenizer: default
      - name: pull_request
        type: object
        field_mappings:
        - name: head
          type: object
          field_mappings:
            - name: repo
              type: object
              field_mappings:
                - name: description
                  type: text
                  tokenizer: default

I would expect that we just ignore the null value and still index the document.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.