Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merging master #12

Merged
merged 14 commits into from
Dec 10, 2020
Merged

merging master #12

merged 14 commits into from
Dec 10, 2020

Commits on Dec 9, 2020

  1. [SPARK-33641][SQL][DOC][FOLLOW-UP] Add migration guide for CHAR VARCH…

    …AR types
    
    ### What changes were proposed in this pull request?
    
    Add migration guide for CHAR VARCHAR types
    
    ### Why are the changes needed?
    
    for migration
    
    ### Does this PR introduce _any_ user-facing change?
    
    doc change
    
    ### How was this patch tested?
    
    passing ci
    
    Closes #30654 from yaooqinn/SPARK-33641-F.
    
    Authored-by: Kent Yao <yaooqinn@hotmail.com>
    Signed-off-by: Wenchen Fan <wenchen@databricks.com>
    yaooqinn authored and cloud-fan committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    c88edda View commit details
    Browse the repository at this point in the history
  2. [SPARK-33669] Wrong error message from YARN application state monitor…

    … when sc.stop in yarn client mode
    
    ### What changes were proposed in this pull request?
    This change make InterruptedIOException to be treated as InterruptedException when closing YarnClientSchedulerBackend, which doesn't log error with "YARN application has exited unexpectedly xxx"
    
    ### Why are the changes needed?
    For YarnClient mode, when stopping YarnClientSchedulerBackend, it first tries to interrupt Yarn application monitor thread. In MonitorThread.run() it catches InterruptedException to gracefully response to stopping request.
    
    But client.monitorApplication method also throws InterruptedIOException when the hadoop rpc call is calling. In this case, MonitorThread will not know it is interrupted, a Yarn App failed is returned with "Failed to contact YARN for application xxxxx;  YARN application has exited unexpectedly with state xxxxx" is logged with error level. which confuse user a lot.
    
    ### Does this PR introduce _any_ user-facing change?
    Yes
    
    ### How was this patch tested?
    very simple patch, seems no need?
    
    Closes #30617 from sqlwindspeaker/yarn-client-interrupt-monitor.
    
    Authored-by: suqilong <suqilong@qiyi.com>
    Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
    suqilong authored and Mridul Muralidharan committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    48f93af View commit details
    Browse the repository at this point in the history
  3. [SPARK-33655][SQL] Improve performance of processing FETCH_PRIOR

    ### What changes were proposed in this pull request?
    Currently, when a client requests FETCH_PRIOR to Thriftserver, Thriftserver reiterates from the start position. Because Thriftserver caches a query result with an array when THRIFTSERVER_INCREMENTAL_COLLECT feature is off, FETCH_PRIOR can be implemented without reiterating the result. A trait FeatureIterator is added in order to separate the implementation for iterator and an array. Also, FeatureIterator supports moves cursor with absolute position, which will be useful for the implementation of FETCH_RELATIVE, FETCH_ABSOLUTE.
    
    ### Why are the changes needed?
    For better performance of Thriftserver.
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    FetchIteratorSuite
    
    Closes #30600 from Dooyoung-Hwang/refactor_with_fetch_iterator.
    
    Authored-by: Dooyoung Hwang <dooyoung.hwang@sk.com>
    Signed-off-by: HyukjinKwon <gurwls223@apache.org>
    Dooyoung Hwang authored and HyukjinKwon committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    a713a7e View commit details
    Browse the repository at this point in the history
  4. [SPARK-33719][DOC] Add make_date/make_timestamp/make_interval into th…

    …e doc of ANSI Compliance
    
    ### What changes were proposed in this pull request?
    
    Add make_date/make_timestamp/make_interval into the doc of ANSI Compliance
    
    ### Why are the changes needed?
    
    Users can know that these functions throw runtime exceptions under ANSI mode if the result is not valid.
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Build doc and check it in browser:
    ![image](https://user-images.githubusercontent.com/1097932/101608930-34a79e80-39bb-11eb-9294-9d9b8c3f6faa.png)
    
    Closes #30683 from gengliangwang/improveDoc.
    
    Authored-by: Gengliang Wang <gengliang.wang@databricks.com>
    Signed-off-by: HyukjinKwon <gurwls223@apache.org>
    gengliangwang authored and HyukjinKwon committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    9959d49 View commit details
    Browse the repository at this point in the history
  5. [SPARK-33071][SPARK-33536][SQL][FOLLOW-UP] Rename deniedMetadataKeys …

    …to nonInheritableMetadataKeys in Alias
    
    ### What changes were proposed in this pull request?
    
    This PR is a followup of #30488. This PR proposes to rename `Alias.deniedMetadataKeys` to `Alias.nonInheritableMetadataKeys` to make it less confusing.
    
    ### Why are the changes needed?
    
    To make it easier to maintain and read.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No. This is rather a code cleanup.
    
    ### How was this patch tested?
    
    Ran the unittests written in the previous PR manually. Jenkins and GitHub Actions in this PR should also test them.
    
    Closes #30682 from HyukjinKwon/SPARK-33071-SPARK-33536.
    
    Authored-by: HyukjinKwon <gurwls223@apache.org>
    Signed-off-by: HyukjinKwon <gurwls223@apache.org>
    HyukjinKwon committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    b5399d4 View commit details
    Browse the repository at this point in the history
  6. [SPARK-33722][SQL] Handle DELETE in ReplaceNullWithFalseInPredicate

    ### What changes were proposed in this pull request?
    
    This PR adds `DeleteFromTable` to supported plans in `ReplaceNullWithFalseInPredicate`.
    
    ### Why are the changes needed?
    
    This change allows Spark to optimize delete conditions like we optimize filters.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    This PR extends the existing test cases to also cover `DeleteFromTable`.
    
    Closes #30688 from aokolnychyi/spark-33722.
    
    Authored-by: Anton Okolnychyi <aokolnychyi@apple.com>
    Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
    aokolnychyi authored and dongjoon-hyun committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    fa9ce1d View commit details
    Browse the repository at this point in the history
  7. [SPARK-33725][BUILD] Upgrade snappy-java to 1.1.8.2

    ### What changes were proposed in this pull request?
    
    This upgrades snappy-java to 1.1.8.2.
    
    ### Why are the changes needed?
    
    Minor version upgrade that includes:
    
    - [Fixed](xerial/snappy-java#265) an initialization issue when using a recent Mac OS X version
    - Support Apple Silicon (M1, Mac-aarch64)
    - Fixed the pure-java Snappy fallback logic when no native library for your platform is found.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Unit test.
    
    Closes #30690 from viirya/upgrade-snappy.
    
    Authored-by: Liang-Chi Hsieh <viirya@gmail.com>
    Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
    viirya authored and dongjoon-hyun committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    667f64f View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2020

  1. [SPARK-33727][K8S] Fall back from gnupg.net to openpgp.org

    ### What changes were proposed in this pull request?
    
    While building R docker image if we can't fetch the key from gnupg.net fall back to openpgp.org
    
    ### Why are the changes needed?
    
    gnupg.net key servers are flaky and sometimes fail to resolve or return keys.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Tried to add key on my desktop, it failed, then tried to add key with openpgp.org and it succeed.
    
    Closes #30696 from holdenk/SPARK-33727-gnupg-server-is-flaky.
    
    Authored-by: Holden Karau <hkarau@apple.com>
    Signed-off-by: HyukjinKwon <gurwls223@apache.org>
    holdenk authored and HyukjinKwon committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    991b797 View commit details
    Browse the repository at this point in the history
  2. [SPARK-33724][K8S] Add decom script as a configuration param

    ### What changes were proposed in this pull request?
    
    Makes the location of the decommission script used in Kubernetes for graceful shutdown configurable.
    
    ### Why are the changes needed?
    
    Some environments don't use the Spark image builder and instead mount the decompressed Spark distro. In those envs configuring the location of the decommissioning script is required.
    
    ### Does this PR introduce _any_ user-facing change?
    
    New configuration parameter.
    
    ### How was this patch tested?
    
    Existing decommissioning integration test.
    
    Closes #30694 from holdenk/SPARK-33724-allow-decommissioning-script-location-to-be-configured.
    
    Authored-by: Holden Karau <hkarau@apple.com>
    Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
    holdenk authored and dongjoon-hyun committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    1c7f5f1 View commit details
    Browse the repository at this point in the history
  3. [SPARK-33558][SQL][TESTS] Unify v1 and v2 ALTER TABLE .. ADD PARTITIO…

    …N tests
    
    ### What changes were proposed in this pull request?
    1. Move the `ALTER TABLE .. ADD PARTITION` parsing tests to `AlterTableAddPartitionParserSuite`
    2. Place v1 tests for `ALTER TABLE .. ADD PARTITION` from `DDLSuite` and v2 tests from `AlterTablePartitionV2SQLSuite` to the common trait `AlterTableAddPartitionSuiteBase`, so, the tests will run for V1, Hive V1 and V2 DS.
    
    ### Why are the changes needed?
    - The unification will allow to run common `ALTER TABLE .. ADD PARTITION` tests for both DSv1 and Hive DSv1, DSv2
    - We can detect missing features and differences between DSv1 and DSv2 implementations.
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    By running new test suites:
    ```
    $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *AlterTableAddPartitionSuite"
    ```
    
    Closes #30685 from MaxGekk/unify-alter-table-add-partition-tests.
    
    Authored-by: Max Gekk <max.gekk@gmail.com>
    Signed-off-by: Wenchen Fan <wenchen@databricks.com>
    MaxGekk authored and cloud-fan committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    af37c7f View commit details
    Browse the repository at this point in the history
  4. [SPARK-33714][SQL] Migrate ALTER VIEW ... SET/UNSET TBLPROPERTIES com…

    …mands to use UnresolvedView to resolve the identifier
    
    ### What changes were proposed in this pull request?
    
    This PR adds `allowTemp` flag to `UnresolvedView` so that `Analyzer` can check whether to resolve temp views or not.
    
    This PR also migrates `ALTER VIEW ... SET/UNSET TBLPROPERTIES` to use `UnresolvedView` to resolve the table/view identifier. This allows consistent resolution rules (temp view first, etc.) to be applied for both v1/v2 commands. More info about the consistent resolution rule proposal can be found in [JIRA](https://issues.apache.org/jira/browse/SPARK-29900) or [proposal doc](https://docs.google.com/document/d/1hvLjGA8y_W_hhilpngXVub1Ebv8RsMap986nENCFnrg/edit?usp=sharing).
    
    ### Why are the changes needed?
    
    To use `UnresolvedView` for view resolution.
    
    One benefit is that the exception message is better for `ALTER VIEW ... SET/UNSET TBLPROPERTIES`. Before, if a temp view is passed, you will just get `NoSuchTableException` with `Table or view 'tmpView' not found in database 'default'`. But with this PR, you will get more description exception message: `tmpView is a temp view. ALTER VIEW ... SET TBLPROPERTIES expects a permanent view`.
    
    ### Does this PR introduce _any_ user-facing change?
    
    The exception message changes as describe above.
    
    ### How was this patch tested?
    
    Updated existing tests.
    
    Closes #30676 from imback82/alter_view_set_unset_properties.
    
    Authored-by: Terry Kim <yuminkim@gmail.com>
    Signed-off-by: Wenchen Fan <wenchen@databricks.com>
    imback82 authored and cloud-fan committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    b112e2b View commit details
    Browse the repository at this point in the history
  5. [SPARK-33732][K8S][TESTS] Kubernetes integration tests doesn't work w…

    …ith Minikube 1.9+
    
    ### What changes were proposed in this pull request?
    
    This PR changes `Minikube.scala` for Kubernetes integration tests to work with Minikube 1.9+.
    `Minikube.scala` assumes that `apiserver.key` and `apiserver.crt` are in `~/.minikube/`.
    But as of Minikube 1.9, they are in `~/.minikube/profiles/<profile>`.
    
    ### Why are the changes needed?
    
    Currently, Kubernetes integration tests doesn't work with Minikube 1.9+.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    I confirmed the following test passes.
    ```
    $ build/sbt -Pkubernetes -Pkubernetes-integration-tests package 'kubernetes-integration-tests/testOnly -- -z "SparkPi with no"'
    ```
    
    Closes #30700 from sarutak/minikube-1.9.
    
    Authored-by: Kousuke Saruta <sarutak@oss.nttdata.com>
    Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
    sarutak authored and dongjoon-hyun committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    795db05 View commit details
    Browse the repository at this point in the history
  6. [SPARK-32670][SQL][FOLLOWUP] Group exception messages in Catalyst Ana…

    …lyzer in one file
    
    ### What changes were proposed in this pull request?
    This PR follows up #29497.
    Because #29497 just give us an example to group all `AnalysisExcpetion` in Analyzer into QueryCompilationErrors.
    This PR group other `AnalysisExcpetion` into QueryCompilationErrors.
    
    ### Why are the changes needed?
    It will largely help with standardization of error messages and its maintenance.
    
    ### Does this PR introduce _any_ user-facing change?
    No. Error messages remain unchanged.
    
    ### How was this patch tested?
    No new tests - pass all original tests to make sure it doesn't break any existing behavior.
    
    Closes #30564 from beliefer/SPARK-32670-followup.
    
    Lead-authored-by: gengjiaan <gengjiaan@360.cn>
    Co-authored-by: Jiaan Geng <beliefer@163.com>
    Co-authored-by: beliefer <beliefer@163.com>
    Signed-off-by: Wenchen Fan <wenchen@databricks.com>
    2 people authored and cloud-fan committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    cef28c2 View commit details
    Browse the repository at this point in the history
  7. [SPARK-33692][SQL] View should use captured catalog and namespace to …

    …lookup function
    
    ### What changes were proposed in this pull request?
    Using the view captured catalog and namespace to lookup function, so the view
    referred functions won't be overridden by newly created function with the same name,
    but different database or function type (i.e. temporary function)
    
    ### Why are the changes needed?
    bug fix, without this PR, changing database or create a temporary function with
    the same name may cause failure when querying a view.
    
    ### Does this PR introduce _any_ user-facing change?
    Yes, bug fix.
    
    ### How was this patch tested?
    newly added and existing test cases.
    
    Closes #30662 from linhongliu-db/SPARK-33692.
    
    Lead-authored-by: Linhong Liu <linhong.liu@databricks.com>
    Co-authored-by: Linhong Liu <67896261+linhongliu-db@users.noreply.github.com>
    Signed-off-by: Wenchen Fan <wenchen@databricks.com>
    2 people authored and cloud-fan committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    1554977 View commit details
    Browse the repository at this point in the history