System function RegexMatch is not recognized in v4 preview3
See original GitHub issueExecuting the following query results in the error “‘RegexMatch’ is not a recognized built-in function name.”
"SELECT * FROM c WHERE RegexMatch(c.attachment, 's...')"
To Reproduce Execute a query that uses the system function RegexMatch.
Expected behavior The query should execute with no errors and return a set of records.
Actual behavior Provide a description of the actual behavior observed.
Environment summary SDK Version: 4.0.0-preview3
Additional context sample code that reproduces the error:
using Azure.Cosmos;
using Azure.Cosmos.Fluent;
using System;
var connectionString = "AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==";
var cosmosClient = new CosmosClientBuilder(connectionString).WithConnectionModeGateway().Build();
var db = await cosmosClient.CreateDatabaseIfNotExistsAsync("Authorization");
var container = await db.Database.DefineContainer("Attachments", "/attachment").CreateIfNotExistsAsync();
var query = new QueryDefinition("SELECT * FROM c WHERE RegexMatch(c.attachment, 's...')");
await foreach(var it in container.Container.GetItemQueryIterator<Attachment>(query))
{
}
public class Attachment
{
public Guid? id { get; set; }
public string description { get; set; }
public string attachment { get; set; }
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Solved: REGEX_Match Function Not Working?
Solved: Hi everyone, I am fairly new to Alteryx and I am having an issue with the RegEx_Match function. I have written the...
Read more >regex - REGEXMATCH and MATCH don't work when a cell ...
I am not able to find values when a cell contains a number (without any other characters). Consider the following case. I have...
Read more >RegexMatch is not working with data validation custom ...
RegexMatch is not working with data validation custom formula. I need to validate if cell is countains 5 numbers separated with commas.
Read more >Google Analytics 4 Regex (Regular Expressions) Tutorial
Learn to use Google Analytics 4 Regex (Regular Expression). By default, the GA4 property uses fully matches regex.
Read more >Using regular expression
Use regular expressions (regex) to create string patterns that help match, locate, or manage text in Java. Together, the literals and special ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The inactivity is indeed painful. Last known date was GTM in May, 2020 that is. Because of the underlying work for the Azure.Core stuff. It looks like it will take a while longer, well, we’re all in IT, we know deadlines 😂 Our biggest reason to chose for V4 was the STJ support indeed, using our custom converters as well. We did this change when we went from 2.2 to 3.1. We’re looking forward to getting some of the new things on V4! (Batch, transactions, new SQL functions 💪💪)!
Not dead, just not prioritized currently, focus currently is to stabilize V3