The Regular Expression (REGEXP) functions are yielding inconsistent results when connected to Oracle database.
A significant variance exists between the data displayed within the Tableau Prep preview interface and the finalized flow output.
For example:
In Tableau Prep preview, the result for REGEXP_MATCH([Category],'^(?:.*?)(Su.*)$') of 'Office Supplies' is TRUE.
In the output, the result for REGEXP_MATCH([Category],'^(?:.*?)(Su.*)$') of 'Office Supplies' is FALSE.
During the design and validation phase, Tableau Prep utilizes a localized Hyper extract to render data previews.
Conversely, upon flow execution, the application translates regular expression logic into native SQL syntax, delegating the computational workload to the source database for full-scale processing.
Tableau Hyper extracts leverage the International Components for Unicode (ICU) library for regular expression evaluation—a robust open-source standard for C/C++ and Java.
In contrast, Oracle Database utilizes the POSIX Extended Regular Expression (ERE) standard, augmented by Perl-influenced extensions.
Consequently, identical patterns may yield disparate results due to these fundamentally different underlying syntactical engines.
To mitigate these discrepancies, use one of the following methods based on your use case
Option 1: Rewrite the regular expression patterns within POSIX Extended Regular Expression (ERE) standard.
For example:
Option 2: Replace REGEXP functions with string functions.
For example:
005318706

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.