Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't crash in MetaDb.scala #74

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Don't crash in MetaDb.scala #74

merged 1 commit into from
Dec 11, 2023

Conversation

mberndt123
Copy link
Contributor

@mberndt123 mberndt123 commented Dec 10, 2023

Hey there,

I wanted to play around with Typo and it crashed. The reason is probably that I'm using it with TimescaleDB, which is a modified version of PostgreSQL. I'm getting this error:

[error] java.util.NoSuchElementException: key not found: RelationName(Some(_timescaledb_cache),cache_inval_hypertable)
[error]         at scala.collection.immutable.BitmapIndexedMapNode.apply(HashMap.scala:670)
[error]         at scala.collection.immutable.BitmapIndexedMapNode.apply(HashMap.scala:672)
[error]         at scala.collection.immutable.HashMap.apply(HashMap.scala:132)
[error]         at typo.MetaDb$.$anonfun$fromDb$30(MetaDb.scala:167)

I'd love to try this fix, but I can't be bothered to figure out this newfangled bleep thing.

@oyvindberg
Copy link
Owner

Makes sense. You can test it locally by running bleep my-publish-local

Let me know if there are any customisations of the generated code we could do to support timescale better, I think it's quite popular even if I've never tried it myself.

@oyvindberg oyvindberg merged commit 1509d56 into oyvindberg:main Dec 11, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants