Skip to content

Instantly share code, notes, and snippets.

@osulli
osulli / README.md
Last active July 19, 2022 18:57
Flattening nested JSON data (in Snowflake) using SQL

Sample Data

This data shows the income data for the first player in a match.

{
  "EventId": "abc",
  "EventName": "MatchEnd",
  "EventNamespace": "Development",
  "EventTimestamp": "2022-07-12T09:40:40.219514Z",
@osulli
osulli / README.md
Last active August 22, 2021 10:16
Logging

Q: "How do you handle logs? I am looking for tools to better format my logs and maybe process and filter them"

Gotchas

  • The call to basicConfig() should come before any calls to debug(), info() etc. As it’s intended as a one-off simple configuration facility, only the first call will actually do anything: subsequent calls are effectively no-ops.

Interesting Notes

On error handling: