Код: Выделить всё
glueclient = boto3.client('glue',region_name='xyz')
def readtable(catalog:str,database:str):
response = glueclient.get_tables(Databasename=database)
for tables in response['TableList']:
tablename=tables['Name']
par_loc=response['Table']['StorageDescriptor']['Loaction']
return spark.read.parquet(par_loc)
Будем благодарны за любую помощь?
Подробнее здесь: https://stackoverflow.com/questions/790 ... -dataframe