You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] _id is not available in where condition #639
We can include metadata fields in the parser language as part of this ticket and hardcode the field types in the expression analyzer. This will also work to fix the double underscore fields.
@dai-chen unfortunately, this doesn't work for other storage devices - which means all _id fields will be treated equally. We would need to think of a way around this when defining our user-defined-languages and maybe just check the table storage type is part of a hardcoded list (for that storage type) or is defined in the user-defined-language.
Works for these examples:
SELECT calcs.key, str0, _id, _score, _maxscore FROM calcs WHERE _id="5"
>> returns calcs.key, calcs.str0, calcs._id, calcs._score, calcs._maxscore
SELECT *, _id FROM bigint WHERE _id="2"
>> returns all of the fields defined in bigint plus _id
SELECT __myCoolField FROM myindex WHERE __myCoolField="cool";
>>returns myindex.__myCoolField
Activity
penghuo commentedon Jun 13, 2022
similar one. #339.
acarbonetto commentedon Jun 30, 2022
related issue: #432
dai-chen commentedon Jun 30, 2022
Since we're adding more Storage implementation for external data source, such as S3, Prometheus. Probably another way to look at this is: every storage may have some special/meta fields. For example, OpenSearch has _id, _score, S3 may have _partition, _file like these in Trino https://trino.io/docs/current/connector/hive.html#special-columns.
opensearch-project#639: allow metadata fields (_id) to be used as Qua…
acarbonetto commentedon Nov 14, 2022
We can include metadata fields in the parser language as part of this ticket and hardcode the field types in the expression analyzer. This will also work to fix the double underscore fields.
@dai-chen unfortunately, this doesn't work for other storage devices - which means all _id fields will be treated equally. We would need to think of a way around this when defining our user-defined-languages and maybe just check the table storage type is part of a hardcoded list (for that storage type) or is defined in the user-defined-language.
Works for these examples:
PR prototype: Bit-Quill#142
dai-chen commentedon Feb 7, 2023
@acarbonetto Any progress on this? I'm thinking can we label all these related issues 2.6.0?
opensearch-project#639: allow metadata fields (_id) to be used as Qua…
opensearch-project#639: allow metadata fields and score opensearch fu…
#639: Support OpenSearch metadata fields and the score OpenSearch fun…
#639: Support OpenSearch metadata fields and the score OpenSearch fun…
#639: Support OpenSearch metadata fields and the score OpenSearch fun…
[Backport 2.7] #639: allow metadata fields and score opensearch funct…
[Backport 2.x] #639: allow metadata fields and score opensearch funct…
acarbonetto commentedon Apr 17, 2023
@dai-chen this issue can be closed as part of #1456
Fix conflicts: opensearch-project#639: Support OpenSearch metadata fi…
Fix typo in License.TXT (opensearch-project#639)