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

[Bug] An error occurs when pyspark3.3.2 runs createDataFrame #4960

Closed
2 tasks done
guoshupei opened this issue Nov 7, 2023 · 1 comment
Closed
2 tasks done

[Bug] An error occurs when pyspark3.3.2 runs createDataFrame #4960

guoshupei opened this issue Nov 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@guoshupei
Copy link
Collaborator

Search before asking

  • I searched the issues and found no similar issues.

Linkis Component

linkis-engineconnn-plugin

Steps to reproduce

code

import numpy as np

# 创建一个包含随机数的NumPy数组
numpy_array = np.random.rand(5, 5)
#
## 将NumPy数组转换为Spark DataFrame
df = spark.createDataFrame(numpy_array.tolist(), schema = ["col1", "col2", "col3", "col4", "col5"])

# 展示DataFrame
df.show()


# 停止SparkSession
#spark.stop()


print("+++++++++++++++++++++++numpy test=======================")

error

image

Expected behavior

Run successfully

Your environment

  • Linkis version used: 1.3.2
  • Environment name and version:
    • spark-3.3.2

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@guoshupei guoshupei added the bug Something isn't working label Nov 7, 2023
Copy link

github-actions bot commented Nov 7, 2023

😊 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
dev@linkis.apache.org community activity information subscribe unsubscribe archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants