Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on September 12, 2022 4:33AM
Likes: 0
Replies: 1
Hi All,
i'm using Hive engine, Is there a way to check the joining table is not empty before running the join recipe?
scenario:
Table A left Join Table B.
Table A is empty. i'm getting below
com.dataiku.dip.exceptions.SourceDatasetNotReadyException: Input dataset <sampleproj.tablename> is not ready
my expectation is to, the recipe should run and return 0 records dataset. please help me if any such settings available or there is way to run the recipe without runtime exception.
Thanks in advance.
Regards, Kiran
Operating system used: windows 10
Hi,
The SourceDatasetNotReadyException can't be turned off.
Instead, you can use metrics and check in a scenario to determine if any of the input tables are empty and fail the scenario and not rebuild the dataset. If you want to create an empty dataset in that case you can do so with a python step for example.
You can find an example here on how to use metrics and check to check if dataset is empty:
Reference Doc:
https://doc.dataiku.com/dss/latest/scenarios/checks.html#checks
Let us know if that helps