Pranav kumar Pulusu
04/18/2024, 1:43 PM2024-04-18 190640,291 | WARNING | tap-gdrive.files | Properties ('kind', 'incompleteSearch', 'files') were present in the 'files' stream but not found in catalog schema. Ignoring.
class FilesStream(googleDriveStream):
"""Define custom stream."""
name = "files"
path = "/files"
primary_keys: t.ClassVar[list[str]] = ["id"]
replication_key = None
# Optionally, you may also use `schema_filepath` in place of `schema`:
# schema_filepath = SCHEMAS_DIR / "users.json" # noqa: ERA001
schema = th.PropertiesList(
th.Property("name", th.StringType),
th.Property(
"id",
th.StringType,
description="The File's system ID",
),
th.Property(
"size",
th.StringType,
description="File size",
),
th.Property(
"originalFilename",
th.StringType,
description="File name",
)
).to_dict()
Can somebody help me in knowing, If the issue because I'm not adding all the properties of json response in schema, and in case if it's the issue, is there a way to be selective in schema?Reuben (Matatika)
04/18/2024, 2:16 PMIf the issue because I'm not adding all the properties of json response in schemaYes - since
PropertiesList
just wraps ObjectType
, you can provide `additional_properties=True`: https://sdk.meltano.com/en/latest/classes/typing/singer_sdk.typing.ObjectType.html#singer_sdk.typing.ObjectType.__init__
Is there a reason you want to ignore those properties?Pranav kumar Pulusu
04/18/2024, 2:19 PMReuben (Matatika)
04/18/2024, 2:23 PMPranav kumar Pulusu
04/18/2024, 3:16 PMPranav kumar Pulusu
04/18/2024, 3:20 PMadditional_properties=True
is resulting in the same error.Pranav kumar Pulusu
04/18/2024, 3:21 PMschema = th.PropertiesList(
th.Property("name", th.StringType),
th.Property(
"id",
th.StringType,
description="The File's system ID",
),
th.Property(
"size",
th.StringType,
description="The user's age in years",
),
th.Property(
"originalFilename",
th.StringType,
description="The user's email address",
),
additional_properties=True
).to_dict()
2024-04-18 20:50:22,413 | WARNING | tap-gdrive.files | Properties ('kind', 'incompleteSearch', 'files') were present in the 'files' stream but not found in catalog schema. Ignoring.
Pranav kumar Pulusu
04/18/2024, 3:29 PMrecords_jsonpath
, working now thanks!Reuben (Matatika)
04/18/2024, 3:29 PM