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

[WIP][discover][s3] fetch options with fields and caches it #8304

Closed

Conversation

kavilla
Copy link
Member

@kavilla kavilla commented Sep 23, 2024

Description

NOTE: Contains commit from #8271. For this PR just look at: a9fa1df

NOTE: Currently does not work. Could it be the wrong query being sent?

Follow-up item should be what happens in the case where fetch fields fails? Or takes too long? Should we put a spinner on the configurator to not display until fetch fields has return a result (regardless of success or fail). Should we disable the Select data if fields have not returned a result?

With sample it did send
DESCRIBE default.http_logs_partitioned

But failed with: Total size of serialized results of 6 task is bigger than maxResult size.

Otherwise it should be calling the same helper functions that cache the data structure.

Issues Resolved

n/a

Screenshot

Testing the changes

Changelog

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

If the dataset type config passes a meta object with `updateAt`
within the data structure we know that the config opts into the TTL.

If TTL over configuring UI setting then refetch in the case of S3
to get a new session ID in the cache.

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Currently does not work I believe.
With sample it did send
`DESCRIBE default.http_logs_partitioned`

But failed with: Total size of serialized results of 6 task is bigger than maxResult size.

Otherwise it should be calling the same helper functions that
cache the data structure.

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Copy link
Contributor

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

Copy link
Contributor

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

1 similar comment
Copy link
Contributor

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 17.85714% with 23 lines in your changes missing coverage. Please review.

Project coverage is 64.12%. Comparing base (f6924a7) to head (a9fa1df).
Report is 52 commits behind head on main.

Files with missing lines Patch % Lines
...gins/query_enhancements/public/datasets/s3_type.ts 8.33% 22 Missing ⚠️
...ry/query_string/dataset_service/dataset_service.ts 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8304      +/-   ##
==========================================
- Coverage   64.14%   64.12%   -0.02%     
==========================================
  Files        3743     3743              
  Lines       88833    88860      +27     
  Branches    13852    13860       +8     
==========================================
+ Hits        56979    56980       +1     
- Misses      31239    31264      +25     
- Partials      615      616       +1     
Flag Coverage Δ
Linux_1 30.06% <0.00%> (-0.01%) ⬇️
Linux_2 58.86% <ø> (ø)
Linux_3 40.36% <75.00%> (?)
Linux_4 ?
Windows_1 30.08% <0.00%> (-0.01%) ⬇️
Windows_2 58.81% <ø> (ø)
Windows_3 40.36% <75.00%> (+<0.01%) ⬆️
Windows_4 31.57% <7.14%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

path: trimEnd(`${API.DATA_SOURCE.ASYNC_JOBS}`),
body: JSON.stringify({
lang: 'sql',
query: `DESCRIBE ${database?.title}.${table.title}`,
Copy link
Member

@ps48 ps48 Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be DESCRIBE TABLE ${connection?.title}.${database?.title}.${table.title}

@kavilla
Copy link
Member Author

kavilla commented Oct 2, 2024

@kavilla kavilla closed this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants