PHANTOM
🇮🇳 IN
Skip to content

Add is_synapse()#929

Merged
xiaoyongzhu merged 4 commits intofeathr-ai:mainfrom
loomlike:jumin/is_synapse
Dec 27, 2022
Merged

Add is_synapse()#929
xiaoyongzhu merged 4 commits intofeathr-ai:mainfrom
loomlike:jumin/is_synapse

Conversation

@loomlike
Copy link
Collaborator

Description

Some notebooks require to check if the notebook is running on synapse. This is a bit hacky way to check the platform but working solution.
More explicit way should be using a spark context, but then we have to pass the spark object to the function as an argument.

How was this PR tested?

Unit tests for negative cases.
Manual tests (on databricks and synapse) for positive cases.

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to clarify your proposed changes.

Signed-off-by: Jun Ki Min <42475935+loomlike@users.noreply.github.com>
Signed-off-by: Jun Ki Min <42475935+loomlike@users.noreply.github.com>
xiaoyongzhu
xiaoyongzhu previously approved these changes Dec 18, 2022
Signed-off-by: Jun Ki Min <42475935+loomlike@users.noreply.github.com>
Signed-off-by: Jun Ki Min <42475935+loomlike@users.noreply.github.com>
@loomlike loomlike added the safe to test Tag to execute build pipeline for a PR from forked repo label Dec 20, 2022
@xiaoyongzhu xiaoyongzhu merged commit cd2d6fa into feathr-ai:main Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Tag to execute build pipeline for a PR from forked repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants