Skip to content

Commit

Permalink
Initial commit for Babelfish v2.11 (#2854)
Browse files Browse the repository at this point in the history
Add version info and upgrade test for 14.13.
Add upgrade schedule file for 14.13.
Update T-SQL extension version to 2.11.0 and add babelfishpg_tsql--2.10.0--2.11.0.sql upgrade script.

Signed-off-by: Rishabh Tanwar [email protected]
  • Loading branch information
rishabhtanwar29 authored Aug 14, 2024
1 parent 9c8a502 commit 4eb1e30
Show file tree
Hide file tree
Showing 7 changed files with 468 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/configuration/upgrade-test-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ upgrade-version: [{
{
upgrade-path: [
{
version: '14.12',
version: '14.13',
upgrade-type: null
},
{
Expand Down
3 changes: 3 additions & 0 deletions .github/template/version-branch-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
'14.12':
engine_branch: BABEL_2_9_STABLE__PG_14_12
extension_branch: BABEL_2_9_STABLE
'14.13':
engine_branch: BABEL_2_10_STABLE__PG_14_13
extension_branch: BABEL_2_10_STABLE
'source.latest':
engine_branch: latest
extension_branch: latest
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ contrib/babelfishpg_tsql/antlr/antlr4cpp_generated_src/
contrib/babelfishpg_tsql/antlr/cmake_install.cmake
contrib/babelfishpg_tsql/pl_reserved_kwlist_d.h
contrib/babelfishpg_tsql/pl_unreserved_kwlist_d.h
contrib/babelfishpg_tsql/sql/babelfishpg_tsql--[0-9].[0-9].[0-9]--[0-9].[0-9].[0-9].sql
contrib/babelfishpg_tsql/sql/babelfishpg_tsql--[0-9].[0-9].[0-9].sql
contrib/babelfishpg_tsql/sql/babelfishpg_tsql--[0-9]*.[0-9]*.[0-9]*--[0-9]*.[0-9]*.[0-9]*.sql
contrib/babelfishpg_tsql/sql/babelfishpg_tsql--[0-9]*.[0-9]*.[0-9]*.sql
contrib/babelfishpg_tsql/src/backend_parser/gram-backend.c
contrib/babelfishpg_tsql/src/backend_parser/gram-backend.h
contrib/babelfishpg_tsql/src/backend_parser/gram-backend.output
Expand All @@ -32,4 +32,5 @@ contrib/babelfishpg_tsql/src/backend_parser/scan-backend.c
contrib/babelfishpg_tsql/src/backend_parser/scan-backend.l
contrib/babelfishpg_tsql/src/pl_gram.c
contrib/babelfishpg_tsql/src/pl_gram.h
contrib/babelfishpg_tsql/src/pl_gram.output
contrib/babelfishpg_tsql/src/pl_gram.output

2 changes: 1 addition & 1 deletion contrib/babelfishpg_tsql/Version.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# places during the build process

PGTSQL_MAJOR_VERSION=2
PGTSQL_MINOR_VERSION=10
PGTSQL_MINOR_VERSION=11
PGTSQL_MICRO_VERSION=0

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION ""babelfishpg_tsql"" UPDATE TO '2.11.0'" to load this file. \quit

-- add 'sys' to search path for the convenience
SELECT set_config('search_path', 'sys, '||current_setting('search_path'), false);

-- Please add your SQLs here
/*
* Note: These SQL statements may get executed multiple times specially when some features get backpatched.
* So make sure that any SQL statement (DDL/DML) being added here can be executed multiple times without affecting
* final behaviour.
*/


-- After upgrade, always run analyze for all babelfish catalogs.
CALL sys.analyze_babelfish_catalogs();

-- Reset search_path to not affect any subsequent scripts
SELECT set_config('search_path', trim(leading 'sys, ' from current_setting('search_path')), false);
4 changes: 2 additions & 2 deletions contrib/babelfishpg_tsql/src/babelfish_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*-------------------------------------------------------------------------
*/

#define BABELFISH_VERSION_STR "2.10.0"
#define BABELFISH_INTERNAL_VERSION_STR "Babelfish 14.13.0.0"
#define BABELFISH_VERSION_STR "2.11.0"
#define BABELFISH_INTERNAL_VERSION_STR "Babelfish 14.14.0.0"
#define BABEL_COMPATIBILITY_VERSION "12.0.2000.8"
#define BABEL_COMPATIBILITY_MAJOR_VERSION "12"
Loading

0 comments on commit 4eb1e30

Please sign in to comment.