question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System function RegexMatch is not recognized in v4 preview3

See original GitHub issue

Executing 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:open
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Mortana89commented, Jan 26, 2021

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 💪💪)!

2reactions
ealsurcommented, Jan 21, 2021

Not dead, just not prioritized currently, focus currently is to stabilize V3

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found