What does your feature request improve on? Please describe.
During loading a file the column types are automatically detected and converted. Would be nice, if there's a method to do that also during runtime.
Describe the solution you'd like
Create a table method like TABLE().autoconvert({1:ncols}) to automatically detect the best column type and convert it to this. Will of course only apply to string columns.
Additional context
Add any other context or screenshots about the feature request here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
Extend the already existing bool Memory::convertColumns(const VectorIndex& _vCol, const std::string& _sType) in memory.cpp to handle the "auto" conversion type. This could be done by using TableColumn::TYPE_NONE as value for "auto" or by adding that explicit as TableColumn::TYPE_AUTO and then only convert string columns like it's done in void Memory::convert() (same file).
Add the new value to the language files for convert()
Add the new value to the documentation files for table
DESCRIPTION
What does your feature request improve on? Please describe. During loading a file the column types are automatically detected and converted. Would be nice, if there's a method to do that also during runtime.
Describe the solution you'd like Create a table method like
TABLE().autoconvert({1:ncols})
to automatically detect the best column type and convert it to this. Will of course only apply tostring
columns.Additional context Add any other context or screenshots about the feature request here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
bool Memory::convertColumns(const VectorIndex& _vCol, const std::string& _sType)
inmemory.cpp
to handle the"auto"
conversion type. This could be done by usingTableColumn::TYPE_NONE
as value for"auto"
or by adding that explicit asTableColumn::TYPE_AUTO
and then only convert string columns like it's done invoid Memory::convert()
(same file).convert()
table
IMPLEMENTATION STEPS
(see also our Wiki for implementation guidelines)
DOCUMENTATION STEPS
(see also our Wiki for further information)
*.NHLP
and*.NDB
files, if needed)*.NLNG
files, if needed)PULL REQUEST