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

[PAUSED] Fix for predict file type when directory is provided as input #1422

Open
wants to merge 3 commits into
base: branch-21.06
Choose a base branch
from

Conversation

Christian8491
Copy link
Contributor

This PR closes #1420

@GPUtester
Copy link
Collaborator

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

@Christian8491 Christian8491 changed the title [WIP] Fix for predict file type when directory is provided as input [REVIEW] Fix for predict file type when directory is provided as input Mar 29, 2021
@@ -2296,6 +2287,28 @@ def create_table(self, table_name, input, **kwargs):
kwargs["names"].pop(id)
kwargs["dtype"].pop(id)

# if the input is a directory and files do not have extension we want to raise an error
if name_file[-1] == "/" and extension == "":
all_files = os.listdir(name_file)
Copy link
Contributor

Choose a reason for hiding this comment

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

Something is wrong here. If we are creating a table from a folder, we will get the files listed out by the C++ layer. I cant remember where or how that happens, but the python layer cant be the one doing it. If you have an HDFS or S3 or GCS filesystem, python cant do os.listdir

@Christian8491 Christian8491 changed the title [REVIEW] Fix for predict file type when directory is provided as input [WIP] Fix for predict file type when directory is provided as input Apr 6, 2021
@wmalpica wmalpica changed the base branch from branch-0.19 to branch-0.20 April 12, 2021 18:43
@Christian8491 Christian8491 changed the title [WIP] Fix for predict file type when directory is provided as input [PAUSED] Fix for predict file type when directory is provided as input Apr 28, 2021
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.

[BUG] No longer predicts file type from extension
3 participants