Skip to content

[stm] fix TTable index initialization - #1012

Merged
fwbrasil merged 1 commit into
mainfrom
ttable-index-fic
Jan 15, 2025
Merged

fwbrasil merged 1 commit into
mainfrom
ttable-index-fic

Conversation

@fwbrasil

Copy link
Copy Markdown
Collaborator

The wrong implicit was being used to initialize the indexes, which caused all fields to be indexed.

table <- TTable.init[Fields]
indexes <-
Kyo.foreach(fields.toSeq) { field =>
Kyo.foreach(indexFields.toSeq) { field =>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want Kyo.foreach to traverse more than Seq...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, can you make an issue for it?

@fwbrasil
fwbrasil merged commit d668e60 into main Jan 15, 2025
@fwbrasil
fwbrasil deleted the ttable-index-fic branch January 15, 2025 20:01
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