Outer Join

Registered Posts: 7 ✭✭

I am trying to convert a HIVE SQL that includes a left outer join. I don't see that in a JOIN recipe. How do I add it?

Operating system used: Windows

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Registered Posts: 19 ✭✭✭

    Hi!

    I hope that you are doing well.

    In the join recipe we offer:

    • Left Join which keeps all rows of the left dataset and adds information of matched records from the right dataset.
    • Outer Join which keeps all rows from both datasets, combining rows where there is a match. This is useful when you need to retain all the information in both datasets.

    (You can find all available join here: Site faviconConcept | Join recipe

    )

    Here i believe that the best match to a Left outer join would be to use Left join.

    What is your exact need? Is there any limitation encountered using left join here? If so let me know so we can find the best way to cover your use case.

    Best,

    Yasmine

  • Registered Posts: 7 ✭✭

    Using the left join worked. Now I am trying to delete records from a dataset where there are four conditions that match. Kind of like a DELETE query in SQL. Any suggestions?

  • Registered Posts: 19 ✭✭✭

    Yes! You can use a prepare recipe with the Filter rows/cells with formula processor: https://doc.dataiku.com/dss/latest/preparation/processors/filter-on-formula.html

    There are a few approach you can take here but this processor would be the easiest option i believe:)

    Best,

    Yasmine

  • Registered Posts: 19 ✭✭✭

    You can also do a SQL recipe if that is easier/familiar to you:

    See: Site faviconConcept | SQL code recipes

    Site faviconSQL recipes — Dataiku DSS 13 documentation

    Best,

    Yasmine

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.