(df, timestamp_field=None)
| 12 | |
| 13 | @contextlib.contextmanager |
| 14 | def prep_file_source(df, timestamp_field=None) -> Iterator[FileSource]: |
| 15 | with tempfile.NamedTemporaryFile(suffix=".parquet") as f: |
| 16 | f.close() |
| 17 | df.to_parquet(f.name) |
| 18 | file_source = FileSource( |
| 19 | file_format=ParquetFormat(), |
| 20 | path=f.name, |
| 21 | timestamp_field=timestamp_field, |
| 22 | ) |
| 23 | yield file_source |
| 24 | |
| 25 | |
| 26 | def simple_bq_source_using_table_arg(df, timestamp_field=None) -> BigQuerySource: |
no test coverage detected