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

DSS-5579: Fixes bug with search input: first search operation is succ… #286

Merged
merged 1 commit into from
Dec 17, 2016
Merged

DSS-5579: Fixes bug with search input: first search operation is succ… #286

merged 1 commit into from
Dec 17, 2016

Conversation

theseyi
Copy link
Contributor

@theseyi theseyi commented Nov 30, 2016

…essful but subsequent search attempts fail on enter

…essful but subsequent search attempts fail on enter
@theseyi theseyi merged commit 7871c94 into datahub-project:master Dec 17, 2016
@theseyi theseyi deleted the feature/DSS-5579 branch April 9, 2017 00:45
TonyOuyangGit added a commit to TonyOuyangGit/datahub that referenced this pull request Feb 14, 2024
…datahub-project#286)

This PR implements flattening the `map` attribute type when scanning
table items for DynamoDB ingestion. The majority of expanding nested
field code logic is adopted from
`metadata-ingestion/src/datahub/ingestion/source/schema_inference/object.py`,
where it recursively calls `append_schema` for `map` data type field and
constructs the field path delimited by `FIELD_DELIMITER`.

According to data types supported in DynamoDB in aws
[docs](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes),
`List` and `Map` type both support recursive structure and since it
would add more complexity for expanding list or list of maps, for now
we'll only expand `Map` type and will handle expanding list in the
future.

This PR also adopts a
[fix](datahub-project#9612) in MongoDB
to sort by `count` and `delimiter_name` when downsampling the table
schema

Updated `test_dynamodb.py` to add `List` and `Map` type items into test
table and `Map` type nested fields are ingested correctly

---------

Co-authored-by: Tamas Nemeth <treff7es@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant