linrrzqqq opened a new pull request, #64031:
URL: https://github.com/apache/doris/pull/64031

   Related PR: https://github.com/apache/doris/pull/59223
   
   Problem Summary:
   
   Support function `ARRAY_CROSS_PRODUCT`
   
   ```sql
   Doris> SELECT CROSS_PRODUCT([1, 2, 3], [2, 3, 4]);
   +-------------------------------------+
   | CROSS_PRODUCT([1, 2, 3], [2, 3, 4]) |
   +-------------------------------------+
   | [-1, 2, -1]                         |
   +-------------------------------------+
   1 row in set (0.021 sec)
   
   Doris> SELECT CROSS_PRODUCT([1, 2, 3], NULL);
   +--------------------------------+
   | CROSS_PRODUCT([1, 2, 3], NULL) |
   +--------------------------------+
   | NULL                           |
   +--------------------------------+
   1 row in set (0.009 sec)
   
   Doris> SELECT CROSS_PRODUCT([1, NULL, 3], [1, 2, 3]);
   ERROR 1105 (HY000): errCode = 2, detailMessage = 
(127.0.0.1)[INVALID_ARGUMENT]function array_cross_product cannot have null
   Doris> SELECT CROSS_PRODUCT([1, 2, 3, 4], [1, 2, 3, 4]);
   ERROR 1105 (HY000): errCode = 2, detailMessage = 
(127.0.0.1)[INVALID_ARGUMENT]function array_cross_product requires both input 
arrays to have exactly 3 elements, got 4 and 4
   
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to