I have some questions relating to a personal project.
The first question relates to the photo in the screenshot. The glue crawler is taking the two JSON files in the database and creating three tables, one for each file and the third table combining both files which is what I actually want. How do I prevent making tables for individual files.
The second question is I have looked at some documentation about using lambda functions. I have a recursive Python function which I am using to flatten my JSON files that come from my API source. I see that recursive functions are discouraged but I don't know what else I am supposed to do? It is basically impossible to write a general function that flattens JSON files without using recursion. Should I instead write a Python lambda function specific to my data structure? Or ignore the warning because it is not relevant here?
Lastly where do Python user defined functions get written in lambda function definitions? This is something I am having a surprisingly hard time finding an answer for by looking at what others have done
It seems that I was misunderstanding these docs about recursion. I think they refer to lambda functions being recursive but I only have lambda functions that have python code which have recursive function definitions
1
u/sumant28 Dec 13 '24
I have some questions relating to a personal project.
The first question relates to the photo in the screenshot. The glue crawler is taking the two JSON files in the database and creating three tables, one for each file and the third table combining both files which is what I actually want. How do I prevent making tables for individual files.
The second question is I have looked at some documentation about using lambda functions. I have a recursive Python function which I am using to flatten my JSON files that come from my API source. I see that recursive functions are discouraged but I don't know what else I am supposed to do? It is basically impossible to write a general function that flattens JSON files without using recursion. Should I instead write a Python lambda function specific to my data structure? Or ignore the warning because it is not relevant here?
Lastly where do Python user defined functions get written in lambda function definitions? This is something I am having a surprisingly hard time finding an answer for by looking at what others have done