Giter Club home page Giter Club logo

Comments (6)

nightscape avatar nightscape commented on July 19, 2024

Does the same code work with other DataFrames?

from spark-excel.

btelle avatar btelle commented on July 19, 2024

I've tested the same code using multiple xls and xlsx files, same empty string result every time. Using other formats like csv results in the expected result.

from spark-excel.

nightscape avatar nightscape commented on July 19, 2024

TBH I don't have any idea how input_file_name is supposed to work. Can you dig out the corresponding documentation and maybe some code examples what one has to do to make it work?
Maybe you can find the corresponding code in the CSV package.

from spark-excel.

nightscape avatar nightscape commented on July 19, 2024

Closing this due to inactivity.

from spark-excel.

merinkumar avatar merinkumar commented on July 19, 2024

Hi, I too face the same issue, the input_file_name() return empty when used with this.

example how this is supposed to work.

file_read = spark.read.option("header","true").csv(blob_location)
file_loc = file_read.withColumn("file_loc",input_file_name())
display(file_loc)

result:
col1 | col2 | file_loc
merin | 25 | wasbs://[email protected]/folder/file.csv

So this will give full path name of the file processed. But when using spark excell, the file path return empty.

from spark-excel.

nightscape avatar nightscape commented on July 19, 2024

See above:

TBH I don't have any idea how input_file_name is supposed to work. Can you dig out the corresponding documentation and maybe some code examples what one has to do to make it work?
Maybe you can find the corresponding code in the CSV package.

from spark-excel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.