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

Implement type system #92

Merged
merged 7 commits into from
Mar 25, 2022
Merged

Implement type system #92

merged 7 commits into from
Mar 25, 2022

Conversation

polyntsov
Copy link
Collaborator

Implements classes for types and classes describing typed columns, relational typed data. Knowing the type of data in a column is necessary to collect statistics and identify possible typos in typo mining workflow.

@polyntsov polyntsov added the feature Provides new functionality label Mar 12, 2022
@polyntsov polyntsov requested a review from Mstrutov March 12, 2022 19:11
@polyntsov polyntsov force-pushed the type_system branch 2 times, most recently from e75ffc5 to c29d824 Compare March 13, 2022 15:36
src/model/types/Type.h Show resolved Hide resolved
src/model/types/Type.h Outdated Show resolved Hide resolved
src/model/types/UndefinedType.h Outdated Show resolved Hide resolved
src/model/types/UndefinedType.h Outdated Show resolved Hide resolved
src/model/types/UndefinedType.h Outdated Show resolved Hide resolved
src/model/ColumnLayoutTypedRelationData.cpp Show resolved Hide resolved
tests/TestTypedColumnData.cpp Outdated Show resolved Hide resolved
src/model/ColumnTypedData.h Outdated Show resolved Hide resolved
src/model/types/MixedType.h Outdated Show resolved Hide resolved
src/model/types/MixedType.h Outdated Show resolved Hide resolved
Made the RelationData abstract class template. So it can be used as a
base class for other classes that represent column layout data with
differenent column types.
It is usefull to be able to parse the same table more than once
test(11.4, 3.14);
test(-102, 11);
test(-123, 123);
test(-21, -7);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Думаю, в тестах нужно ещё фиксировать, что происходит, если поделить на 0.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

По стандарту ub, на практике, думаю, происходит sigfpe (на линуксе). Кажется, ни то, ни то нельзя отловить в тестах.

@Mstrutov Mstrutov merged commit 683af23 into Desbordante:main Mar 25, 2022
@polyntsov polyntsov deleted the type_system branch October 28, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Provides new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants