-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support column_list in CONTAINS clause
Previously in Babelfish, the feature of fulltext search for simple terms in CONTAINS clause was not supported for multiple columns. The TSQL syntax of Fulltext search for simple terms in CONTAINS clause over multiple columns was unidentifiable over TDS endpoint of Babelfish and would throw syntax error. To fix this, we have created a new grammar to support the TSQL multiple column Fulltext search syntax for simple terms in CONTAINS clause over TDS endpoint of Bablefish and we have also worked over the rewriting logic of the Fulltext search CONTAINS clause query to accept columns as a list and then by creating their Column Reference nodes we will concatenate them in a multiple column syntax supported by PostgreSQL. TASK: BABEL-4239 Signed-off-by: Jaspal Singh [email protected]
- Loading branch information
Jaspal Singh
committed
Jan 30, 2025
1 parent
3d2b8f4
commit 51d511d
Showing
15 changed files
with
2,101 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- tsql user=jdbc_user password=12345678 | ||
-- enable FULLTEXT | ||
SELECT set_config('babelfishpg_tsql.escape_hatch_fulltext', 'ignore', 'false') | ||
GO | ||
~~START~~ | ||
text | ||
ignore | ||
~~END~~ | ||
|
||
|
||
-- Remove fulltext index | ||
DROP FULLTEXT INDEX ON test_tb | ||
GO | ||
|
||
DROP FULLTEXT INDEX ON fts_schema.test_tb1 | ||
GO | ||
|
||
-- Remove the table | ||
DROP TABLE IF EXISTS test_tb | ||
GO | ||
|
||
DROP TABLE IF EXISTS fts_schema.test_tb1 | ||
GO | ||
|
||
-- Remove schema | ||
DROP SCHEMA IF EXISTS fts_schema | ||
GO | ||
|
||
-- disable FULLTEXT | ||
SELECT set_config('babelfishpg_tsql.escape_hatch_fulltext', 'strict', 'false') | ||
GO | ||
~~START~~ | ||
text | ||
strict | ||
~~END~~ | ||
|
Oops, something went wrong.