spark-matcher icon indicating copy to clipboard operation
spark-matcher copied to clipboard

Fix ambiguous warning messages

Open LouisdeBruijn opened this issue 2 years ago • 0 comments

Fixes ambiguous warning messages for table_checkpoint and checkpoint_dir Adds ValueError when both col_names and field_info are given

def if_else(a, b):
	""""""
	if not a and b:
		pass
	else:
		print(f"warning. a: {a}, b: {b}.")

a, b = True, True
if_else(a, b)
a, b = False, True
if_else(a, b)
a, b = True, False
if_else(a, b)
a, b = False, False
if_else(a, b)

$ warning. a: True, b: True.
$ warning. a: True, b: False.
$ warning. a: False, b: False.

LouisdeBruijn avatar Jun 22 '22 08:06 LouisdeBruijn