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

Add docs for permission in 03 and add enable_trace in 04 #21

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

chengyineng38
Copy link

No description provided.

Copy link
Collaborator

@prithvikannan prithvikannan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this @chengyineng38 ! Just one small thing about which data we use for review.

Copy link
Collaborator

@prithvikannan prithvikannan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm not an official maintainer of this repo so adding @smurching to approve

@smurching
Copy link
Collaborator

@chengyineng38 could you share proof of manual testing that this change works (feel free to reach out directly to me with a notebook link etc)? Otherwise looks good, thanks for the updates!


from databricks.agents import enable_trace_reviews

request_id_list = request_log_df.select(F.col("request_id")).rdd.flatMap(lambda x: x).collect()
Copy link
Collaborator

@smurching smurching Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QQ, why do we need the .rdd.flatMap call? It might be cleaner to e.g. use .toPandas instead, since RDDs and their APIs are deprecated

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Simplified below.

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

Successfully merging this pull request may close these issues.

3 participants