Skip to content

Commit

Permalink
Enable SqlServer product tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agrawalreetika authored and tdcmeehan committed May 1, 2024
1 parent 8de7541 commit 0edb84c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/product-tests-specific-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,6 @@ jobs:
./mvnw install ${MAVEN_FAST_INSTALL} -am -pl '!presto-docs,!presto-spark-package,!presto-spark-launcher,!presto-spark-testing,!presto-test-coverage'
- name: Product Tests Specific 2.1
run: presto-product-tests/bin/run_on_docker.sh singlenode-ldap -g ldap -x simba_jdbc
# SQL server image sporadically hangs during the startup
# TODO: Uncomment it once issue is fixed
# https://github.com/Microsoft/mssql-docker/issues/76
# - |
# if [[ -v PRODUCT_TESTS_SPECIFIC_ENVIRONMENT ]]; then
# presto-product-tests/bin/run_on_docker.sh \
# singlenode-sqlserver -g sqlserver
# fi
- name: Product Tests Specific 2.2
run: presto-product-tests/bin/run_on_docker.sh multinode-tls -g smoke,cli,group-by,join,tls
- name: Product Tests Specific 2.3
Expand All @@ -139,3 +131,5 @@ jobs:
# run: presto-product-tests/bin/run_on_docker.sh singlenode-kerberos-hdfs-impersonation-with-wire-encryption -g storage_formats,cli,hdfs_impersonation,authorization
- name: Product Tests Specific 2.7
run: presto-product-tests/bin/run_on_docker.sh singlenode-kafka -g kafka
- name: Product Tests Specific 2.8
run: presto-product-tests/bin/run_on_docker.sh singlenode-sqlserver -g sqlserver
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:

sqlserver:
hostname: sqlserver
image: 'microsoft/mssql-server-linux:2017-CU6'
image: 'mcr.microsoft.com/mssql/server:2017-CU13'
ports:
- '1433:1433'
environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ private SqlServerDataTypesTableDefinition() {}
return ImmutableList.<List<Object>>of(
ImmutableList.of(Long.MIN_VALUE, Short.MIN_VALUE, Integer.MIN_VALUE, Byte.MIN_VALUE,
Double.MIN_VALUE, Float.valueOf("-3.40E+38"), "\0", "\0", "\0", "\0", "\0", "\0",
Date.valueOf("0001-01-02"), Timestamp.valueOf("1753-01-01 00:00:00.000"),
Timestamp.valueOf("0001-01-01 00:00:00.000"), Timestamp.valueOf("1900-01-01 00:00:00"),
Date.valueOf("1970-01-02"), Timestamp.valueOf("1970-01-01 00:00:00.000"),
Timestamp.valueOf("1970-01-01 00:00:00.000"), Timestamp.valueOf("1970-01-01 00:00:00"),
Double.MIN_VALUE, Float.valueOf("-3.40E+38")),
ImmutableList.of(Long.MAX_VALUE, Short.MAX_VALUE, Integer.MAX_VALUE, Byte.MAX_VALUE,
Double.MAX_VALUE, Float.MAX_VALUE, "abcd", "abcdef", "abcd", "abcde", "abcdefg", "abcd",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ public void testAllDatatypes()
.containsOnly(
row(Long.MIN_VALUE, Short.MIN_VALUE, Integer.MIN_VALUE, Byte.MIN_VALUE, Double.MIN_VALUE,
Float.valueOf("-3.40E+38"), "\0 ", "\0", "\0", "\0 ", "\0", "\0",
Date.valueOf("0001-01-02"), Timestamp.valueOf("1753-01-01 00:00:00.000"),
Timestamp.valueOf("0001-01-01 00:00:00.000"), Timestamp.valueOf("1900-01-01 00:00:00"),
Date.valueOf("1970-01-02"), Timestamp.valueOf("1970-01-01 00:00:00.000"),
Timestamp.valueOf("1970-01-01 00:00:00.000"), Timestamp.valueOf("1970-01-01 00:00:00"),
Double.MIN_VALUE, Float.valueOf("-3.40E+38")),
row(Long.MAX_VALUE, Short.MAX_VALUE, Integer.MAX_VALUE, Byte.MAX_VALUE, Double.MAX_VALUE,
Float.MAX_VALUE, "abcd", "abcdef", "abcd", "abcde", "abcdefg", "abcd",
Expand Down

0 comments on commit 0edb84c

Please sign in to comment.