Код: Выделить всё
ctx = pl.SQLContext().register_many(
{"tbl1": df_source, "tbl2": df_reference})
src_df = ctx.execute(pl_sql_query, eager=True)
Код: Выделить всё
('json_message', Struct({'id': Int64, 'name': String, 'age': Int64, 'dob': String}))
Код: Выделить всё
pl_sql_query =
"select json_message.id as id, json_message.name as name
from tbl1
where json_message.id in (select id from tbl2)"
Не знаю, как именно нам нужно получить доступ к значению поля структуры. Попробовал struct.with_fields, но не смог получить доступ к значению.
Может кто-нибудь помочь мне в этом?
Подробнее здесь: https://stackoverflow.com/questions/785 ... ing-sqlcon
Мобильная версия