:wave: Does `ingestionConfig.transformConfigs` occ...
# troubleshooting
j
👋 Does
ingestionConfig.transformConfigs
occur before
ingestionConfig.filterConfig
? [realtime table] I'm seeing errors on some messages due to invalid transformations (-> missing field - since this table isn't for this type of event)
Maybe filtering isn't working Here's how it's configured
table config
Copy code
"ingestionConfig": {
    "filterConfig": {
      "filterFunction": "Groovy({type != \"com.insideboard.user-event.v1.post.like\"}, type)"
    },
and the events that should have been filtered but generated transformation errors
event
Copy code
{
  "id": "1935a299-9f7c-43d4-a571-6c5cfdcf30cb",
  "source": "urn:insideboard:microservices:user-events",
  "specversion": "1.0",
  "type": "com.insideboard.user-event.v1.document.open",
  "time": "2021-04-09T14:53:13.812Z",
  "data": {
    "name": "document.open",
    "documentId": "60705cf9106a42150318d198",
    "projectId": "60646df59c4dbcdaf6e620bf",
    "origin": "DOCUMENTATION_PROJECT",
    "status": 200,
    "userId": "6049f2c188d36401807cf526",
    "eventTime": "2021-04-09T14:53:13.705Z"
  },
  "ibcustomer": "demo",
  "x-b3-traceid": "b403e6464ab3991ba26a4aade442705e",
  "x-b3-parentspanid": "7f497c2501e745a8",
  "x-b3-spanid": "25ecdb6fec5b4840",
  "x-b3-sampled": "1"
}
transformation_error.log
n
Yes transformation occurs before filter.
j
Interesting, thanks @Neha Pawar
n
So that you have the option to filter on the result of a transform
j
Yeah, makes sense, I just thought about that use case 🙂 So there's no way to "hide" those error messages ?
n
Only thing I can think of is if we make the jsonPathString function null safe
@Xiang Fu should we change jsonPathString to handle null input?
j
Ah yes, indeed Thanks 🙂
I've had success adding default value to
jsonPathString
- so that should "fix" my "issue" indeed
n
Oh great
x
I think we should fix the null input to get null output for sure
please create a github issue
j
@Xiang Fu so change the behavior from error (missing field) to using the null value for the given type (target column) ?
x
right, or maybe an empty json