-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Nested arrays of objects are missing #17436
Comments
@lianetoohey Thank you very much for the detailed feedback. Can you provide the following details:
With this we can actively investigate. |
@Mike-Ubezzi-MSFT we are using SQL API. I have attached a sample document from the collection which includes the request object. Please let me know if any further information would be helpful. Many thanks! |
And what is the query you are attempting to use to return the data set? Is the data partitioned...multiple collections? |
We're not using a query in the ODBC connector; we're sampling the entire collection, and it's not detecting all of our fields. Would it help if I shared the schema file? The data is not partitioned. |
I posted a response to the wrong thread. Please reach out to askcosmosdb at Microsoft dotcom. Please include all the details asked for here plus all your schema details. They will be able to provide feedback. Thank you! |
I'm happy to provide that information, though I'm not sure I understand the relationship between bulk import and ODBC/Schema Editor so I'm not quite sure how to answer. We're doing this entirely through wizards if that makes a difference; this isn't in our application anywhere. If we were customizing those values, would they be in the connection string? I don't think we're specifying them (maybe max retries?) but for good measure this is what we've got: Driver={Microsoft DocumentDB ODBC Driver};AuthenticationKey={redacted};Consistency={1};DESCRIPTION={};Driver={Microsoft DocumentDB ODBC Driver};DSNType={1};Host={https://oursite.documents.azure.com:443/};KeyEncrypted={true};LocalSchemaFile={C:\TA Hub\TAHub Schema.json};LogFileCount={50};LogFileSize={20};NumberOfRetries={5} Let me know if this isn't what you were referring to. Thanks, |
@lianetoohey I was working a 'bulk import' issue. I mistakenly posted my response to this issue instead of the issue it was intended. |
@Mike-Ubezzi-MSFT sorry, I don't know what you're looking for. Can you please clarify? |
Ah please disregard, I see that I missed another message from you in this thread. I'll reach out to the email address you provided. Thanks! - Liane |
@lianetoohey We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion. |
@Mike-Ubezzi-MSFT @lianetoohey I am facing same issue that sampling does not detect those field having nested array of key value pairs in json document. Is there a resolution to this issue? |
@ashutoshsharma15 looks like a bug that Microsoft is working on. According to @balaksms they are finalizing some kind of fix as of yesterday. |
Thanks @lianetoohey how can I track the status of bug to keep myself updated cc @Mike-Ubezzi-MSFT @balaksms |
We also seem to be facing this issue. Has it been resolved? |
@awickham10 not as far as I'm aware |
Anyone figure out a way to work around this issue? I've tried to edit the JSON the Schema Editor spits out, but it is not obvious how (or not possible) to format for tables-nested-in-tables and I keep getting errors. |
@kgmccann I tried the same thing but never got it to work. I wanted this for reporting so I'm going to try to feed my data source through some other connector, but I haven't figured out the details yet. Last I heard Microsoft was targeting a Q3 2019 fix for this. |
I am also facing same issue. Is it fixed in ODBC driver or is there a workaround for the arrays and nested arrays? |
@AzureSan I ended up writing a custom script, eschewing the ODBC driver entirely. Because the destination for me was Power BI, I could embed an R Script to get the job done as described in the comments here. In retrospect it would probably have been easier to write it in python, since there is an SDK for that |
While I can successfully connect to one of my CosmosDB collections, another is not working correctly. The Document in question includes a request object. Within request there should be multiple fields. When I sample my collection in Schema Editor, the resulting schema is missing any array of objects (or anything that includes an array of objects) that should be included under the request object. Behavior does not change if the same collection is re-sampled.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: