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

Add limit to TENSOR size #1427

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Add limit to TENSOR size #1427

merged 1 commit into from
Mar 31, 2023

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented Mar 30, 2023

Fix issue #1422

@@ -301,6 +301,14 @@ std::unique_ptr<uint8_t[]> TableCopier::getArrowFixedList(const std::string& l,
"Each fixed list should have fixed number of elements. Expected: {}, Actual: {}.",
dataType.fixedNumElementsInList, numElementsRead));
}
if (numElementsRead * Types::getDataTypeSize(childDataType) >=
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably not the right place for this check.

For variable length data types, we perform this check when setting overflow to overflow_file.

For fixed length data types, this should be done at DDL level.

@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (6675cf1) 92.64% compared to head (ce6e40d) 92.65%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1427   +/-   ##
=======================================
  Coverage   92.64%   92.65%           
=======================================
  Files         650      650           
  Lines       22544    22546    +2     
=======================================
+ Hits        20886    20890    +4     
+ Misses       1658     1656    -2     
Impacted Files Coverage Δ
src/binder/bind/bind_ddl.cpp 99.13% <100.00%> (+1.78%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@acquamarin acquamarin merged commit 728a28b into master Mar 31, 2023
@acquamarin acquamarin deleted the limit-fixed-list-size branch March 31, 2023 03:17
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.

None yet

2 participants