You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "qidaye (via GitHub)" <gi...@apache.org> on 2023/12/29 11:10:40 UTC
[I] [Bug] es catalog not_null_or_empty not working [doris]
qidaye opened a new issue, #29318:
URL: https://github.com/apache/doris/issues/29318
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Version
master
### What's Wrong?
`not_null_or_empty` not working
### What You Expected?
Working.
### How to Reproduce?
1. curl -sXPUT localhost:29200/test?pretty -H 'Content-Type:application/json' -d'{"settings":{"number_of_shards":1, "number_of_replicas":0},"mappings":{"properties":{"message":{"type":"text"}}}}'
2. curl -sXPUT localhost:9200/test/_doc/1?pretty -H'Content-Type:application/json' -d'{"id":1}'
3. curl -sXPUT localhost:9200/test/_doc/1?pretty -H'Content-Type:application/json' -d'{"id":2, "message":""}'
4. curl -sXPUT localhost:9200/test/_doc/1?pretty -H'Content-Type:application/json' -d'{"id":3, "message":"not null or empty"}'
5. CREATE CATALOG es PROPERTIES ( "type"="es", "hosts"="http://127.0.0.1:9200/" );
6. select message from test_v1 where message != '';
7. select message from test_v1 where message is not null;
8. select message from test_v1 where not_null_or_empty(message);
not_null_or_empty can not filter null or empty.
### Anything Else?
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] es catalog not_null_or_empty not working [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #29318: [Bug] es catalog not_null_or_empty not working
URL: https://github.com/apache/doris/issues/29318
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org