Skip to content

Instantly share code, notes, and snippets.

@sdboyer
Created April 19, 2023 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdboyer/34fd38e41c14efc638d6957ff94a2de2 to your computer and use it in GitHub Desktop.
Save sdboyer/34fd38e41c14efc638d6957ff94a2de2 to your computer and use it in GitHub Desktop.
flattened lineages
import "github.com/grafana/thema"
thema.#Lineage
name: "trivial-two"
schemas: [{
version: [0, 0]
schema: {
firstfield: string
}
},
{
version: [0, 1]
schema: {
firstfield: string
secondfield?: int32
}
}]
lenses: [{
from: [0, 1]
to: [0, 0]
input: _
result: {
firstfield: input.firstfield
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment