linxt20 opened a new pull request, #13320:
URL: https://github.com/apache/iotdb/pull/13320

   This work mainly completed the following three tasks:
   1. First, the return type of the two functions substring and replace was 
changed from the same as the input type to String, which is consistent with the 
function definition
   2. Modify the implementation logic of substring. The current definition is 
as follows:
   - start_index starts from 1, that is, position 1 is 0 of the array
   - If length is omitted, the value of length is assumed to be int.MAX, that 
is, it covers the end of the string
   - If any parameter is null, null is returned
   - The following are two error conditions other than type errors:
   - start_index > source.length
   - length < 0
   - The actual returned content range is the intersection of the set 
[start_index, start_index + length) and the set [1, source.length]. If the 
intersection is empty, "" is returned. (Considering the extreme case, 
start_index + length exceeds int.MAX and becomes a negative number, which will 
cause abnormal results and require special judgment)
   3. Added pi function and e function, followed the functioncall route and 
processed them into ConstantColumnTransformer


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to