apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.27k stars 1.15k forks source link

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

Closed guoshupei closed 8 months ago

guoshupei commented 8 months ago

Search before asking

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

Anything else

No response

Are you willing to submit a PR?

github-actions[bot] commented 8 months ago

:blush: 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 :point_right: 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