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

HPCC-31860 Test suite for the Parquet plugin #18980

Conversation

ilhan2316
Copy link
Contributor

@ilhan2316 ilhan2316 commented Aug 9, 2024

Type of change:

  • This change is a bug fix (non-breaking change which fixes an issue).
  • This change is a new feature (non-breaking change which adds functionality).
  • This change improves the code (refactor or other change that does not change the functionality)
  • This change fixes warnings (the fix does not alter the functionality or the generated code)
  • This change is a breaking change (fix or feature that will cause existing behavior to change).
  • This change alters the query API (existing queries will have to be recompiled)

Checklist:

  • My code follows the code style of this project.
    • My code does not create any new warnings from compiler, build system, or lint.
  • The commit message is properly formatted and free of typos.
    • The commit message title makes sense in a changelog, by itself.
    • The commit is signed.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly, or...
    • I have created a JIRA ticket to update the documentation.
    • Any new interfaces or exported functions are appropriately commented.
  • I have read the CONTRIBUTORS document.
  • The change has been fully tested:
    • I have added tests to cover my changes.
    • All new and existing tests passed.
    • I have checked that this change does not introduce memory leaks.
    • I have used Valgrind or similar tools to check for potential issues.
  • I have given due consideration to all of the following potential concerns:
    • Scalability
    • Performance
    • Security
    • Thread-safety
    • Cloud-compatibility
    • Premature optimization
    • Existing deployed queries will not be broken
    • This change fixes the problem, not just the symptom
    • The target branch of this pull request is appropriate for such a change.
  • There are no similar instances of the same problem that should be addressed
    • I have addressed them here
    • I have raised JIRA issues to address them separately
  • This is a user interface / front-end modification
    • I have tested my changes in multiple modern browsers
    • The component(s) render as expected

Smoketest:

  • Send notifications about my Pull Request position in Smoketest queue.
  • Test my draft Pull Request.

Testing:

@ilhan2316 ilhan2316 changed the title Hpcc 31860 parquet plugin test suite Hpcc-31860 parquet plugin test suite Aug 9, 2024
@ilhan2316 ilhan2316 force-pushed the HPCC-31860-Parquet-Plugin-Test-Suite branch from 905c5b2 to d148f19 Compare August 9, 2024 17:49
@ilhan2316 ilhan2316 changed the title Hpcc-31860 parquet plugin test suite Hpcc-31860 Test suite for the Parquet plugin Aug 9, 2024
@jackdelv jackdelv self-requested a review August 9, 2024 17:54
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 I took a quick first look and had some questions and comments.

There were a few repeated style issues that I only pointed out a single example of, but make sure to check over all the files for things like ending newlines, correct copyright headers, etc.

Also, don't forget to remove any changes not associated with this PR.

Back to you.

testing/parquet/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/parquet/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/parquet/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_compress.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_write.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_schema.ecl Outdated Show resolved Hide resolved
@ilhan2316 ilhan2316 changed the title Hpcc-31860 Test suite for the Parquet plugin HPCC-31860 Test suite for the Parquet plugin Aug 12, 2024
@ilhan2316 ilhan2316 requested a review from jackdelv August 13, 2024 18:15
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 I think it is looking good. Don't be put off by the number of comments. Feel free to ask any questions that may come up.

Once you address these changes please take a look through the rest of the files to see if my comments apply in any other places. Once you are done I will look through the rest of the files.

esp/src/dgrid Outdated Show resolved Hide resolved
plugins/parquet/parquetembed.cpp Outdated Show resolved Hide resolved
plugins/parquet/parquetembed.hpp Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_compress.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_compress.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_schema.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_size.ecl Outdated Show resolved Hide resolved
vcpkg Outdated Show resolved Hide resolved
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 A few more comments, but I think it is close.

testing/regress/ecl/key/parquet_partition.xml Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_compress.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_overwrite.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_size.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
@ilhan2316 ilhan2316 requested a review from jackdelv August 22, 2024 14:03
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 I just took a look at your ECL files and have a few comments.

testing/regress/ecl/parquet_compress.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_size.ecl Outdated Show resolved Hide resolved

outputDataset := ParquetIO.Read(recordLayout, filePath);

compareDatasets := IF(COUNT(importedDataset) = COUNT(outputDataset),
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment still stands.

############################################################################## */

//class=parquet
//Cover's data type's supported by ECL and arrow
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment still stands.

testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_write.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/upload.ecl Outdated Show resolved Hide resolved
@jackdelv
Copy link
Contributor

jackdelv commented Sep 16, 2024

@ilhan2316 This will need to be rebased to the latest version of 9.8.x to pull in the changes from this JIRA. It contains changes to data type sizes and could cause some of your key files to change.

@ilhan2316 ilhan2316 force-pushed the HPCC-31860-Parquet-Plugin-Test-Suite branch from f50a03e to 92a925a Compare September 18, 2024 03:13
@ilhan2316 ilhan2316 requested a review from jackdelv September 23, 2024 17:35
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 Don't be put off by the number of comments it is getting close. Feel free to leave questions on GitHub and I can add examples and clarification.

Some files used in your test cases are missing from the PR as well as files that are included but not referenced in your ECL. I have included the list below. Also, make sure you check back to the PR to see the results of the smoketests. Some of the test cases are failing.

Files I didn't see a reference to in the ECL:
diverse.parquet
edgecase1.parquet
intial.parquet
integertest.parquet
medium.parquet
small.parquet
time3.parquet
updated.parquet
Files missing that were referenced:
single.parquet
multi_1_of_3.parquet
multi_2_of_3.parquet
multi_3_of_3.parquet
Missing key files:
parquet_types.xml
parquet_schema.xml

testing/regress/ecl/key/parquet_empty.xml Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_size.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_string.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_write.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_types.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/upload.ecl Outdated Show resolved Hide resolved
@ilhan2316 ilhan2316 requested a review from jackdelv October 15, 2024 19:00
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 Before I look at the changes could you please remove the files that shouldn't be there. You can refer to my earlier comment for the list of files that should be removed.

@jackdelv
Copy link
Contributor

@ilhan2316 it looks like there are many of my comments that are still unresolved. Make sure you are going through the "Files Changed" section and opening each file to view my comments. Also, it helps me if you respond to the comments with what you changed, if you agree or disagree, or what your thoughts are rather than just resolving the thread.

@ilhan2316 ilhan2316 requested a review from jackdelv October 28, 2024 18:15
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 I know this is a lot of comments, but I think they are overall easier to fix than they have previously been. If you want me to provide some ECL for these tests let me know and I can help you. Don't hesitate to ask questions either!

testing/regress/ecl/key/parqueCorrupt.xml Outdated Show resolved Hide resolved
testing/regress/ecl/parquetEmpty.ecl Show resolved Hide resolved
testing/regress/ecl/parquetPartition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetPartition.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetSize.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetTypes.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetTypes.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetWrite.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetCompress.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquet_partition.ecl Outdated Show resolved Hide resolved
@ilhan2316 ilhan2316 requested a review from jackdelv November 12, 2024 00:08
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 It is very close. I left a few minor comments on parquetTypes.ecl. There were just a few additional cases that could be combined. There were also some files that should not be included. I made a comment of the ones I noticed.

testing/regress/download/string_dataset.parquet Outdated Show resolved Hide resolved
testing/regress/ecl/parquetCompress.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/upload.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetTypes.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetTypes.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetTypes.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetTypes.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetTypes.ecl Outdated Show resolved Hide resolved
@ilhan2316 ilhan2316 requested a review from jackdelv November 18, 2024 17:57
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 It looks very close. There are just a few places that need to use relative paths that I have commented on. It also looks like the parquetString.ecl is still failing.

testing/regress/download/empty.parquet Outdated Show resolved Hide resolved
testing/regress/ecl/parquetOverwrite.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetSchema.ecl Outdated Show resolved Hide resolved
testing/regress/ecl/parquetSize.ecl Outdated Show resolved Hide resolved
END;

result := JOIN(stringData, parquetString,
LEFT.s1 = RIGHT.s1 AND LEFT.s2 = RIGHT.s2 AND LEFT.s3 = RIGHT.s3,
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is still failing, and I think the join condition needs testing. Add a //skip tag so the test will pass.

@ilhan2316 ilhan2316 changed the base branch from candidate-9.8.x to master November 26, 2024 18:31
@ilhan2316 ilhan2316 requested a review from jackdelv December 27, 2024 17:53
Copy link
Contributor

@jackdelv jackdelv left a comment

Choose a reason for hiding this comment

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

@ilhan2316 Looks good. Please squash.

@ilhan2316 ilhan2316 marked this pull request as ready for review December 30, 2024 21:08
 # Updated with changes

Signed-off-by: Ilhan Gelle <[email protected]>
@ilhan2316 ilhan2316 force-pushed the HPCC-31860-Parquet-Plugin-Test-Suite branch from bf55a5f to 8938abc Compare December 30, 2024 21:46
@jackdelv jackdelv requested a review from ghalliday December 31, 2024 12:43
@jackdelv
Copy link
Contributor

@ghalliday This is ready to merge. Please take a look.

@ghalliday ghalliday merged commit 7859d55 into hpcc-systems:master Jan 2, 2025
48 of 50 checks passed
Copy link

github-actions bot commented Jan 2, 2025

Jirabot Action Result:
Added fix version: 9.10.0
Workflow Transition: 'Resolve issue'

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.

3 participants