Skip to content

[sqllogictest] Define output types and check them in tests#5253

Merged
alamb merged 8 commits intoapache:mainfrom
melgenek:4499-check-types
Feb 17, 2023
Merged

[sqllogictest] Define output types and check them in tests#5253
alamb merged 8 commits intoapache:mainfrom
melgenek:4499-check-types

Conversation

@melgenek
Copy link
Contributor

Which issue does this PR close?

Closes #4499.

Rationale for this change

Currently, the type strings in sqllogictests are ignored, and letters have no meaning to them. Also, some tests benefit, like null checks, benefit from type checking.

What changes are included in this PR?

  • this pr defines a custom DFColumnType that has more types than the original sqllite set of types
  • updates tests to use these custom types
  • forces the sqllogictestrunner to check the types

Are these changes tested?

Github actions.

Are there any user-facing changes?

No

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) waiting-on-upstream PR is waiting on an upstream dependency to be updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement column number / column type verification for sqllogictest

4 participants