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

Qualification tool: Report write data format and nested types #3263

Merged
merged 17 commits into from
Sep 3, 2021

Conversation

nartal1
Copy link
Collaborator

@nartal1 nartal1 commented Aug 20, 2021

This closes #3045 and closes #3044.
For write data format, unsupported write data formats are reported in the csv.
For nested type, it parses the ReadSchema and identifies the nested types in the schema which is reported in the csv.

@nartal1 nartal1 added the tools label Aug 20, 2021
@nartal1 nartal1 added this to the Aug 16 - Aug 27 milestone Aug 20, 2021
@nartal1 nartal1 self-assigned this Aug 20, 2021
@nartal1
Copy link
Collaborator Author

nartal1 commented Aug 20, 2021

build

Signed-off-by: Niranjan Artal <nartal@nvidia.com>
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
@nartal1
Copy link
Collaborator Author

nartal1 commented Aug 26, 2021

build

@nartal1
Copy link
Collaborator Author

nartal1 commented Aug 26, 2021

@tgravescs, I think I have addressed all the review comments. PTAL.

@nartal1
Copy link
Collaborator Author

nartal1 commented Aug 26, 2021

build

val source = Source.fromResource(DEFAULT_DS_FILE)
val supportedWriteFormat = ArrayBuffer[String]()
try {
val fileContents = source.getLines().toSeq
Copy link
Collaborator

Choose a reason for hiding this comment

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

we are parsing file twice, I'd say just parse it once and split read/writes into different datastructures. so remove this and update readSupportedTypeForPlugin

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Niranjan Artal <nartal@nvidia.com>
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
@nartal1
Copy link
Collaborator Author

nartal1 commented Aug 27, 2021

build

@tgravescs
Copy link
Collaborator

there are some unit tests failing please take a look @nartal1

04:17:51 �[32mPluginTypeCheckerSuite:�[0m
04:17:51 �[31m- read not supported datatype *** FAILED ***�[0m
04:17:51 �[31m 1.0 did not equal 0.0 (PluginTypeCheckerSuite.scala:39)�[0m
04:17:51 �[32m- invalid file�[0m
04:17:51 �[31m- read not CO datatype *** FAILED ***�[0m

Signed-off-by: Niranjan Artal <nartal@nvidia.com>
@nartal1
Copy link
Collaborator Author

nartal1 commented Aug 27, 2021

build

@@ -2019,10 +2019,12 @@ object SupportedOpsForTools {
val conf = new RapidsConf(Map.empty[String, String])
val types = TypeEnum.values.toSeq
val header = Seq("Format", "Direction") ++ types
val writeOps: Array[String] = Array.fill(18)("NA")
Copy link
Collaborator

Choose a reason for hiding this comment

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

18 is very specific here, seems easily broken if format of that file changes.

Signed-off-by: Niranjan Artal <nartal@nvidia.com>
@nartal1
Copy link
Collaborator Author

nartal1 commented Aug 27, 2021

build

@jbrennan333
Copy link
Contributor

build

@nartal1
Copy link
Collaborator Author

nartal1 commented Sep 2, 2021

build

Signed-off-by: Niranjan Artal <nartal@nvidia.com>
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
@tgravescs
Copy link
Collaborator

build

@nartal1 nartal1 merged commit 83b58d3 into NVIDIA:branch-21.10 Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants