Skip to content

Improve kBool type#778

Open
MichaelS239 wants to merge 4 commits into
Desbordante:mainfrom
MichaelS239:improve-bool-type
Open

Improve kBool type#778
MichaelS239 wants to merge 4 commits into
Desbordante:mainfrom
MichaelS239:improve-bool-type

Conversation

@MichaelS239

Copy link
Copy Markdown
Collaborator

This PR adds various fixes and improvements for kBool type:

  • Type deduction for kBool was fixed for cases when one column contains both integers and bools
  • kBool was made metrizable
  • Info about kBool was added to builtin.h
  • Tests for kBool type deduction were added

Handle integer and non-integer representations of bools
separately to ensure correct type deduction for cases when
one column contains both integers and bools.

The following rules for type deduction were ensured:
- {0, 1} -> kInt
- {true, false, t, f, 0, 1} -> kBool
- {0, 1, 2, true} -> kMixed
- {true, false, string} -> kMixed
- {t, f, string} -> kString
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.

1 participant