Skip to content

YQ-3010 Check fields count and types in raw format (s3 and pq) #3352

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

Merged
merged 14 commits into from
Apr 10, 2024

Conversation

kardymonds
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

...

@kardymonds kardymonds requested a review from a team as a code owner April 1, 2024 11:23
Copy link

github-actions bot commented Apr 1, 2024

2024-04-01 11:27:09 UTC Pre-commit check for 8e0187c has started.
2024-04-01 11:27:11 UTC Build linux-x86_64-release-clang14 is running...
🔴 2024-04-01 11:28:59 UTC Build failed. see the build logs.

Copy link

github-actions bot commented Apr 1, 2024

2024-04-01 11:27:28 UTC Pre-commit check for 8e0187c has started.
2024-04-01 11:27:31 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-01 11:30:47 UTC Build successful.
2024-04-01 11:32:34 UTC Tests are running...
🔴 2024-04-01 13:19:01 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
66619 55514 0 5 11086 14

Copy link

github-actions bot commented Apr 1, 2024

2024-04-01 11:27:42 UTC Pre-commit check for 8e0187c has started.
2024-04-01 11:27:44 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-01 11:30:31 UTC Build successful.
2024-04-01 11:32:23 UTC Tests are running...
🔴 2024-04-01 13:06:45 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11828 11565 0 57 187 19

@kardymonds kardymonds requested a review from a team as a code owner April 1, 2024 14:17
Copy link

github-actions bot commented Apr 1, 2024

2024-04-01 14:18:21 UTC Pre-commit check for 0795056 has started.
2024-04-01 14:18:22 UTC Build linux-x86_64-release-clang14 is running...
🔴 2024-04-01 14:19:31 UTC Build failed. see the build logs.

Copy link

github-actions bot commented Apr 1, 2024

2024-04-01 14:18:38 UTC Pre-commit check for 0795056 has started.
2024-04-01 14:18:40 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-01 14:21:12 UTC Build successful.
2024-04-01 14:22:54 UTC Tests are running...
🔴 2024-04-01 15:56:25 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11826 11564 0 54 188 20

Copy link

github-actions bot commented Apr 1, 2024

2024-04-01 14:19:36 UTC Pre-commit check for 0795056 has started.
2024-04-01 14:19:37 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-01 14:22:26 UTC Build successful.
2024-04-01 14:24:09 UTC Tests are running...
🔴 2024-04-01 16:13:04 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
66527 55401 0 22 11086 18

const TStructExprType* structRowType = rowType->Cast<TStructExprType>();

if (format == "raw"sv && structRowType->GetSize() > 1) {
ctx.AddError(TIssue(ctx.GetPosition(rowTypeNode.Pos()), "Only one field (in schema) supported in raw format"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

давай в ошибку напишем сколько полей мы увидели в схеме. давай скобки уберем из текста. и давай еще проверит тип колонки. такой код уже где-то писался. посмотри в pq провайдере, например

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Тип колонки не только String может быть, raw может и в UINT64 преобразовываться
WITH ( format=raw, SCHEMA ( Data UINT64 ) ).

Похожая проверка есть в s3sink (https://github.com/ydb-platform/ydb/blob/main/ydb/library/yql/providers/s3/provider/yql_s3_datasink_type_ann.cpp#L373), но она не про это.
Остальное поправил.

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 08:10:00 UTC Pre-commit check for a276d4c has started.
2024-04-02 08:10:03 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-02 08:16:06 UTC Build successful.
2024-04-02 08:17:52 UTC Tests are running...
🔴 2024-04-02 09:51:38 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11848 11545 0 48 192 63

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 08:10:02 UTC Pre-commit check for a276d4c has started.
2024-04-02 08:10:04 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-02 08:15:55 UTC Build successful.

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 08:11:16 UTC Pre-commit check for a276d4c has started.
2024-04-02 08:11:19 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-02 08:16:55 UTC Build successful.
2024-04-02 08:18:42 UTC Tests are running...
🔴 2024-04-02 10:11:37 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
66712 55488 0 35 11124 65

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 12:17:53 UTC Pre-commit check for c43cdb7 has started.
2024-04-02 12:17:55 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-02 12:24:27 UTC Build successful.
2024-04-02 12:26:16 UTC Tests are running...
🔴 2024-04-02 13:56:42 UTC Test run completed, no test results found for commit 8ff00d9. Please check build logs.
2024-04-02 13:56:46 UTC Check cancelled

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 12:18:26 UTC Pre-commit check for c43cdb7 has started.
2024-04-02 12:18:29 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-02 12:24:46 UTC Build successful.

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 12:19:01 UTC Pre-commit check for c43cdb7 has started.
2024-04-02 12:19:03 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-02 12:24:27 UTC Build successful.
2024-04-02 12:26:11 UTC Tests are running...
🔴 2024-04-02 13:56:43 UTC Test run completed, no test results found for commit 8ff00d9. Please check build logs.
2024-04-02 13:56:50 UTC Check cancelled

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 13:58:46 UTC Pre-commit check for fa2beb3 has started.
2024-04-02 13:58:49 UTC Build linux-x86_64-release-clang14 is running...
🔴 2024-04-02 14:04:21 UTC Build failed. see the build logs.

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 13:59:01 UTC Pre-commit check for fa2beb3 has started.
2024-04-02 13:59:03 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-02 14:04:26 UTC Build successful.
2024-04-02 14:06:05 UTC Tests are running...
🔴 2024-04-02 15:50:15 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
66639 55437 0 46 11099 57

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 13:59:08 UTC Pre-commit check for fa2beb3 has started.
2024-04-02 13:59:10 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-02 14:05:29 UTC Build successful.
2024-04-02 14:07:22 UTC Tests are running...
🔴 2024-04-02 15:41:56 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11840 11528 0 64 190 58

ctx.AddError(TIssue(TStringBuilder() << "Only one field in schema supported in raw format (you have "
<< realSchemaRowCount << " fields)"));
return false;
} else if (realSchemaRowCount == 1 && rowType != ctx.MakeType<TDataExprType>(EDataSlot::String)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

избыточный else. пиши код линейнее
разрешаем типы string, utf8, json, yson + опциональность

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Добавил optional + (string, utf8, json, yson)

Copy link

github-actions bot commented Apr 3, 2024

2024-04-03 08:02:07 UTC Pre-commit check for a5a0858 has started.
2024-04-03 08:02:09 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-03 08:08:08 UTC Build successful.
2024-04-03 08:09:56 UTC Tests are running...
🔴 2024-04-03 09:43:32 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11865 11550 0 56 204 55

Copy link

github-actions bot commented Apr 3, 2024

2024-04-03 08:02:23 UTC Pre-commit check for a5a0858 has started.
2024-04-03 08:02:28 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-03 08:07:31 UTC Build successful.
2024-04-03 08:09:17 UTC Tests are running...
🔴 2024-04-03 09:52:04 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
66659 55488 0 20 11099 52

Copy link

github-actions bot commented Apr 3, 2024

2024-04-03 08:02:35 UTC Pre-commit check for a5a0858 has started.
2024-04-03 08:02:38 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-03 08:08:45 UTC Build successful.

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 06:42:41 UTC Pre-commit check for d8388f3 has started.
2024-04-09 06:42:43 UTC Build linux-x86_64-release-clang14 is running...
2024-04-09 06:42:58 UTC Check cancelled

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 06:42:42 UTC Pre-commit check for d8388f3 has started.
2024-04-09 06:42:46 UTC Build linux-x86_64-release-asan is running...
2024-04-09 06:42:58 UTC Check cancelled

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 06:44:06 UTC Pre-commit check for 079be7a has started.
2024-04-09 06:44:08 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-09 06:50:02 UTC Build successful.
2024-04-09 06:51:49 UTC Tests are running...
🔴 2024-04-09 08:17:29 UTC Test run completed, no test results found for commit e4100e9. Please check build logs.
2024-04-09 08:17:32 UTC Check cancelled

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 06:46:20 UTC Pre-commit check for 079be7a has started.
2024-04-09 06:46:23 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-09 06:52:57 UTC Build successful.

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 06:46:23 UTC Pre-commit check for 079be7a has started.
2024-04-09 06:46:26 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-09 06:52:09 UTC Build successful.
2024-04-09 06:54:03 UTC Tests are running...
🔴 2024-04-09 08:17:28 UTC Test run completed, no test results found for commit e4100e9. Please check build logs.
2024-04-09 08:17:31 UTC Check cancelled

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 08:18:49 UTC Pre-commit check for e1b904f has started.
2024-04-09 08:18:51 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-09 08:22:35 UTC Build successful.
2024-04-09 08:24:22 UTC Tests are running...
🔴 2024-04-09 09:53:03 UTC Test run completed, no test results found for commit b87f8cf. Please check build logs.
2024-04-09 09:53:06 UTC Check cancelled

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 08:21:07 UTC Pre-commit check for e1b904f has started.
2024-04-09 08:21:09 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-09 08:25:41 UTC Build successful.

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 08:23:20 UTC Pre-commit check for e1b904f has started.
2024-04-09 08:23:23 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-09 08:26:55 UTC Build successful.
2024-04-09 08:28:47 UTC Tests are running...
🔴 2024-04-09 09:53:03 UTC Test run completed, no test results found for commit b87f8cf. Please check build logs.
2024-04-09 09:53:07 UTC Check cancelled

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 09:54:31 UTC Pre-commit check for 7598d7e has started.
2024-04-09 09:54:33 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-09 10:05:31 UTC Build successful.

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 10:01:56 UTC Pre-commit check for 7598d7e has started.
2024-04-09 10:01:58 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-09 10:06:15 UTC Build successful.
2024-04-09 10:08:05 UTC Tests are running...
🔴 2024-04-09 10:09:48 UTC Test run completed, no test results found for commit d10b304. Please check build logs.
2024-04-09 10:09:51 UTC Check cancelled

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 10:16:50 UTC Pre-commit check for bb3e308 has started.
2024-04-09 10:16:52 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-04-09 10:20:27 UTC Build successful.

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 10:18:45 UTC Pre-commit check for bb3e308 has started.
2024-04-09 10:18:47 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-09 10:21:44 UTC Build successful.
2024-04-09 10:23:21 UTC Tests are running...
🔴 2024-04-09 12:12:24 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
67030 55817 0 74 11124 15

Copy link

github-actions bot commented Apr 9, 2024

2024-04-09 10:35:03 UTC Pre-commit check for bb3e308 has started.
2024-04-09 10:35:06 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-09 10:38:52 UTC Build successful.
2024-04-09 10:40:36 UTC Tests are running...
🔴 2024-04-09 12:15:33 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11906 11643 0 51 198 14

@kardymonds kardymonds changed the title YQ-3010 Check fields count in raw format YQ-3010 Check fields count and types in raw format (s3 and pq) Apr 9, 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.

4 participants