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

AttributeError: 'StructType' object has no attribute 'treeString' #140

Open
svaningelgem opened this issue Jan 27, 2021 · 2 comments
Open

Comments

@svaningelgem
Copy link
Contributor

The exception in subject is thrown by the following code:

from datetime import date
from pysparkling.sql.session import SparkSession
from pysparkling.sql.functions import collect_set

spark = SparkSession.Builder().getOrCreate()

dataset_usage = [
    ('steven', 'UUID1', date(2019, 7, 22)),
]
dataset_usage_schema = 'id: string, datauid: string, access_date: date'

df = spark.sparkContext.parallelize(dataset_usage).toDF(dataset_usage_schema)
df.printSchema()
@tools4origins
Copy link
Collaborator

There is currently no good first issue on this repo labels but this one could be one as there is no project-specific complexity in implementing the missing method, with some attention given to nested fields

@svaningelgem
Copy link
Contributor Author

Ok, I'll pick that up once the PRs are through :-) (stabler code base)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants