Bug #2933
closedQuery Builder comparisons for strings, dates do not work
0%
Description
Attempt to filter data sets using QueryBuilder apparently do not work for strings (or date?). Note that date in Datos dataset appears as a String. Is there a Date object? Numerical comparison filter apparently DO work
Updated by Jing Tao almost 17 years ago
After changing the double quotes symbol to single quotes for string value in the query, the string comparison works now.
There is some difficulties to use Date and Time data types in HSQL. HSQL can only handle one format for Date and Time -
Date: yyyy-mm-dd
Time: hh:ss.SSSS
Other formats will be considered as error in HSQL. However, eml documents have lots of other formats and they can't be handle by HSQL.
We may transform the date format to the one, which HSQL can understand, in data file by java. However, in this case, kepler modifies the original data file, which is not our target.
Updated by Matt Jones almost 17 years ago
Although the transformation to the HSQL date format is a change, its probably going to be necessary for many systems. In many ways it is similar to how the DataManager library does name-mangling to deal with database-specific limitations in naming. As long as you are not losing or changing information, I think the transformation to the right date format for insert into the database is a good idea.
Updated by Jing Tao almost 17 years ago
Dan tried to string comparison and it works for him. We talked this bug and think to close it in Kepler and add new bug in datamanager - to handle date type.
Updated by Jing Tao almost 17 years ago
This bug is closed and new bug to handle date type in data manager library will be added.