Build #134302

Environment variables

NameValue
ANDROID_HOME/home/android-sdk/
AWS_ACCESS_KEY_ID[*******]
AWS_SECRET_ACCESS_KEY[*******]
BUILD_CAUSEGHPRBCAUSE
BUILD_CAUSE_GHPRBCAUSEtrue
BUILD_DISPLAY_NAME#134302
BUILD_ID134302
BUILD_NUMBER134302
BUILD_TAGjenkins-SparkPullRequestBuilder-134302
BUILD_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134302/
CLASSPATH$CLASSPATH
EXECUTOR_NUMBER2
GEM_HOME/home/jenkins/gems
GITHUB_OAUTH_KEY[*******]
GIT_BRANCHfix-postgres-dialect-regression
GIT_COMMITf69a43726379e7a5d2f1ef7b1695dc96fea55375
GIT_URLhttps://github.com/apache/spark.git
GOPATH/home/jenkins/go-projects
GOROOT/usr/local/go
HOME/home/jenkins
HUDSON_HOME/var/lib/jenkins
HUDSON_SERVER_COOKIE472906e9832aeb79
HUDSON_URLhttps://amplab.cs.berkeley.edu/jenkins/
JAVA_HOME/usr/lib/jvm/java-8-oracle
JENKINS_HOME/var/lib/jenkins
JENKINS_SERVER_COOKIE472906e9832aeb79
JENKINS_URLhttps://amplab.cs.berkeley.edu/jenkins/
JOB_BASE_NAMESparkPullRequestBuilder
JOB_NAMESparkPullRequestBuilder
JOB_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/
LANGen_US.UTF-8
LOGNAMEjenkins
MAIL/var/mail/jenkins
NODE_LABELSamp-jenkins-staging-worker-02 staging staging-02 ubuntu ubuntu-avx2 ubuntu-gpu
NODE_NAMEamp-jenkins-staging-worker-02
OLDPWD/home/jenkins
PATH/home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.3/bin/:/home/jenkins/gems/bin:/usr/local/go/bin:/home/jenkins/go-projects/bin:/home/jenkins/anaconda2/bin:/home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.3/bin/:/home/jenkins/gems/bin:/usr/local/go/bin:/home/jenkins/go-projects/bin:/home/jenkins/anaconda2/bin:$PATH
PWD/home/jenkins
ROOT_BUILD_CAUSEGHPRBCAUSE
ROOT_BUILD_CAUSE_GHPRBCAUSEtrue
RUN_ARTIFACTS_DISPLAY_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134302/display/redirect?page=artifacts
RUN_CHANGES_DISPLAY_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134302/display/redirect?page=changes
RUN_DISPLAY_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134302/display/redirect
RUN_TESTS_DISPLAY_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/134302/display/redirect?page=tests
SHELL/bin/bash
SHLVL1
SPARK_TEST_KEY[*******]
SSH_CLIENT192.168.10.11 38518 22
SSH_CONNECTION192.168.10.11 38518 192.168.10.32 22
USERjenkins
WORKSPACE/home/jenkins/workspace/SparkPullRequestBuilder@2
XDG_RUNTIME_DIR/run/user/17938
XDG_SESSION_ID1
_/usr/lib/jvm/java-8-oracle/bin/java
ghprbActualCommit084fb2db1435bcf9eba6f9516db38ccd1af5b952
ghprbActualCommitAuthorKousuke Saruta
ghprbActualCommitAuthorEmailsarutak@oss.nttdata.com
ghprbAuthorRepoGitUrlhttps://github.com/sarutak/spark.git
ghprbCommentBodynull
ghprbCredentialsIdb7d94526-9e9b-435f-9275-d7dbf209f4a3
ghprbGhRepositoryapache/spark
ghprbPullAuthorEmailsarutak@oss.nttdata.com
ghprbPullAuthorLoginsarutak
ghprbPullAuthorLoginMention@sarutak
ghprbPullDescriptionGitHub pull request #31262 of commit 084fb2db1435bcf9eba6f9516db38ccd1af5b952, no merge conflicts.
ghprbPullId31262
ghprbPullLinkhttps://github.com/apache/spark/pull/31262
ghprbPullLongDescription### What changes were proposed in this pull request?\r\n<!--\r\nPlease clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. \r\nIf possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.\r\n  1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.\r\n  2. If you fix some SQL features, you can provide some references of other DBMSes.\r\n  3. If there is design documentation, please add the link.\r\n  4. If there is a discussion in the mailing list, please add the link.\r\n-->\r\nThis PR fixes the regression bug brought by SPARK-33888 (#30902).\r\nAfter that PR merged, `PostgresDIalect#getCatalystType` throws Exception for array types.\r\n```\r\n[info] - Type mapping for various types *** FAILED *** (551 milliseconds)\r\n[info  java.util.NoSuchElementException: key not found: scale\r\n[info  at scala.collection.immutable.Map$EmptyMap$.apply(Map.scala:106)\r\n[info  at scala.collection.immutable.Map$EmptyMap$.apply(Map.scala:104)\r\n[info  at org.apache.spark.sql.types.Metadata.get(Metadata.scala:111)\r\n[info  at org.apache.spark.sql.types.Metadata.getLong(Metadata.scala:51)\r\n[info  at org.apache.spark.sql.jdbc.PostgresDialect$.getCatalystType(PostgresDialect.scala:43)\r\n[info  at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$.getSchema(JdbcUtils.scala:321)\r\n```\r\n\r\nThis PR also change the `PostgresIntegrationSuite` because that PR changed the JDBC-Catalyst type mapping for `sql.Types.TIME` from `TimestampType` to `IntegerType`.\r\n\r\n### Why are the changes needed?\r\n<!--\r\nPlease clarify why the changes are needed. For instance,\r\n  1. If you propose a new API, clarify the use case for a new API.\r\n  2. If you fix a bug, you can clarify why it is a bug.\r\n-->\r\nTo fix the regression bug.\r\n\r\n### Does this PR introduce _any_ user-facing change?\r\n<!--\r\nNote that it means *any* user-facing change including all aspects such as the documentation fix.\r\nIf yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.\r\nIf possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.\r\nIf no, write 'No'.\r\n-->\r\nNo.\r\n\r\n### How was this patch tested?\r\n<!--\r\nIf tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.\r\nIf it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.\r\nIf tests were not added, please describe why they were not added and/or why it was difficult to add.\r\n-->\r\nI confirmed `PostgresIntegrationSuite` passed.
ghprbPullTitle[SPARK-34180][SQL] Fix the regression brought by SPARK-33888 for PostgresDialect
ghprbSourceBranchfix-postgres-dialect-regression
ghprbTargetBranchmaster
ghprbTriggerAuthor
ghprbTriggerAuthorEmail
ghprbTriggerAuthorLogin
ghprbTriggerAuthorLoginMention
sha1origin/pr/31262/merge