Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata Information in Bronze append #121

Open
DivyanshuSati007 opened this issue Nov 13, 2024 · 1 comment
Open

Metadata Information in Bronze append #121

DivyanshuSati007 opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@DivyanshuSati007
Copy link

I have a scenario where in bronze table i am inserting the data with metadata columns _metadata.file_name and _metadata.file_path,
but i now have to append the historic data into this bronze table , but i am not able to fetch _metadata.file_path and modification_file_name. Is it possible to do so. if yes please tell me the json.

eg:
this below json fails when we run it.
is it possibel to include "source_metadata": { } in bronze_append_flows as shown in code.

"bronze_append_flows": [
{
"name": "customer_bronze_flow",
"create_streaming_table": false,
"source_format": "cloudFiles",
"source_details": {
"source_path_it": "{dbfs_path}/integration_tests/resources/data/customers_af",
"source_schema_path": "{dbfs_path}/integration_tests/resources/customers.ddl",

#this part will work or not

            "source_metadata": {
                  "include_autoloader_metadata_column": "True",
                  "autoloader_metadata_col_name": "source_metadata",
                  "select_metadata_cols": {
                     "input_file_name": "_metadata.file_name",
                     "input_file_path": "_metadata.file_path"
              }
        },

        "reader_options": {
           "cloudFiles.format": "json",
           "cloudFiles.inferColumnTypes": "true",
           "cloudFiles.rescuedDataColumn": "_rescued_data"
        },
        "once": false
  }

],

@ravi-databricks
Copy link
Contributor

Need to add support for metdata columns! will add support for this in coming release

@ravi-databricks ravi-databricks self-assigned this Nov 18, 2024
@ravi-databricks ravi-databricks added the bug Something isn't working label Nov 18, 2024
@ravi-databricks ravi-databricks added this to the v0.0.9 milestone Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants