Build #144535

Environment variables

NameValue
ANDROID_HOME/home/android-sdk/
AWS_ACCESS_KEY_ID[*******]
AWS_SECRET_ACCESS_KEY[*******]
BUILD_CAUSEGHPRBCAUSE
BUILD_CAUSE_GHPRBCAUSEtrue
BUILD_DISPLAY_NAME#144535
BUILD_ID144535
BUILD_NUMBER144535
BUILD_TAGjenkins-SparkPullRequestBuilder-144535
BUILD_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144535/
CLASSPATH$CLASSPATH
DBUS_SESSION_BUS_ADDRESSunix:path=/run/user/1001/bus
EXECUTOR_NUMBER1
GITHUB_OAUTH_KEY[*******]
GIT_BRANCHSPARK-37098
GIT_COMMITe1399f05ea0291de8f87c0172cea5252f7189751
GIT_URLhttps://github.com/apache/spark.git
HOME/home/jenkins
HUDSON_HOME/var/lib/jenkins
HUDSON_SERVER_COOKIE472906e9832aeb79
HUDSON_URLhttps://amplab.cs.berkeley.edu/jenkins/
JAVA_HOME/usr/java/latest
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
MOTD_SHOWNpam
NODE_LABELSresearch-jenkins-worker-01 ubuntu ubuntu20 worker-01
NODE_NAMEresearch-jenkins-worker-01
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/144535/display/redirect?page=artifacts
RUN_CHANGES_DISPLAY_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144535/display/redirect?page=changes
RUN_DISPLAY_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144535/display/redirect
RUN_TESTS_DISPLAY_URLhttps://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144535/display/redirect?page=tests
SHELL/bin/bash
SHLVL0
SPARK_TEST_KEY[*******]
SSH_CLIENT192.168.10.11 55534 22
SSH_CONNECTION192.168.10.11 55534 192.168.10.21 22
USERjenkins
WORKSPACE/home/jenkins/workspace/SparkPullRequestBuilder
XDG_RUNTIME_DIR/run/user/1001
XDG_SESSION_CLASSuser
XDG_SESSION_ID1
XDG_SESSION_TYPEtty
_/usr/java/latest/bin/java
ghprbActualCommit587a285b5a16773ec3cf893cf5d904cbdbfc085e
ghprbActualCommitAuthorulysses-you
ghprbActualCommitAuthorEmailulyssesyou18@gmail.com
ghprbAuthorRepoGitUrlhttps://github.com/ulysses-you/spark.git
ghprbCommentBodycc @yaooqinn @cloud-fan @viirya
ghprbCredentialsIdb7d94526-9e9b-435f-9275-d7dbf209f4a3
ghprbGhRepositoryapache/spark
ghprbPullAuthorEmailulyssesyou18@gmail.com
ghprbPullAuthorLoginulysses-you
ghprbPullAuthorLoginMention@ulysses-you
ghprbPullDescriptionGitHub pull request #34365 of commit 587a285b5a16773ec3cf893cf5d904cbdbfc085e, no merge conflicts.
ghprbPullId34365
ghprbPullLinkhttps://github.com/apache/spark/pull/34365
ghprbPullLongDescription<!--\r\nThanks for sending a pull request!  Here are some tips for you:\r\n  1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html\r\n  2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html\r\n  3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.\r\n  4. Be sure to keep the PR description updated to reflect all changes.\r\n  5. Please write your PR title to summarize what this PR proposes.\r\n  6. If possible, provide a concise example to reproduce the issue for a faster review.\r\n  7. If you want to add a new configuration, please read the guideline first for naming configurations in\r\n     'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.\r\n  8. If you want to add or modify an error type or message, please read the guideline first in\r\n     'core/src/main/resources/error/README.md'.\r\n-->\r\n\r\n### 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\nInvalidate the table cache after alter table properties (set and unset).\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\nThe table properties can change the behavior of wriing. e.g. the parquet table with `parquet.compression`.\r\n\r\nIf you execute the following SQL, we will get the file with snappy compression rather than zstd.\r\n```\r\nCREATE TABLE t (c int) STORED AS PARQUET;\r\n// cache table metadata\r\nSELECT * FROM t;\r\nALTER TABLE t SET TBLPROPERTIES('parquet.compression'='zstd');\r\nINSERT INTO TABLE t values(1);\r\n```\r\nSo we should invalidate the table cache after alter table properties.\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\nyes, bug fix\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\nIf benchmark tests were added, please run the benchmarks in GitHub Actions for the consistent environment, and the instructions could accord to: https://spark.apache.org/developer-tools.html#github-workflow-benchmarks.\r\n-->\r\nAdd test
ghprbPullTitle[SPARK-37098][SQL] Alter table properties should invalidate cache
ghprbSourceBranchSPARK-37098
ghprbTargetBranchmaster
ghprbTriggerAuthorulysses
ghprbTriggerAuthorEmailulyssesyou18@gmail.com
ghprbTriggerAuthorLoginulysses-you
ghprbTriggerAuthorLoginMention@ulysses-you
sha1origin/pr/34365/merge