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

[Question] how to get spark sql explain #4862

Closed
1 task done
cowcomic opened this issue Aug 15, 2023 · 4 comments
Closed
1 task done

[Question] how to get spark sql explain #4862

cowcomic opened this issue Aug 15, 2023 · 4 comments
Labels
Question Further information is requested

Comments

@cowcomic
Copy link

cowcomic commented Aug 15, 2023

Before asking

Your environment

有两个环境,一个是新版本,如下:

  • Linkis version used: 1.3.2
  • Environment name and version:
    • spark-3.1.1
    • jdk 1.8.0_121

一个是旧版本

  • Linkis version used: 0.9
  • Environment name and version:
    • spark-2.4

Describe your questions

Q1. 执行spark sql的时候如何能够查看explain的结果
如在spark-shell中这样的语句
sql("select count(*) from test_agg").explain(true)

https://linkis.staged.apache.org/zh-CN/docs/1.3.2/user-guide/linkiscli-manual#4-支持的参数列表
shell的文档里没有相关说明

Eureka service list

No response

Some logs info or acctch file

@cowcomic cowcomic added the Question Further information is requested label Aug 15, 2023
@github-actions
Copy link

😊 Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
👉 How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
[email protected] community activity information subscribe unsubscribe archive

@cowcomic cowcomic changed the title [Question] [Question] how to get spark sql explain Aug 15, 2023
@aiceflower
Copy link
Contributor

This is supported, you can refer to the following ways to use.
val s=sql("select count(*) from test_agg").explain(true) ; show(s)

@casionone
Copy link
Contributor

This question has not been answered for a long time, I will close it first, if necessary, you can re-open it.

@cowcomic
Copy link
Author

cowcomic commented Oct 7, 2023

I mean how to get the result of the explain in the IDE instead of using the shell
@casionone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants