Skip to content

[datafusion-spark] parse_url incompatibilities #21943

@andygrove

Description

@andygrove

Describe the bug

I'm working on enabling parse_url in Comet in apache/datafusion-comet#4152 and found some incompatibilities.

  SELECT parse_url('', 'PATH');                                                                                                                                                                        
  -- Spark: ""    Comet: NULL
                                                                                                                                                                                                       
  SELECT parse_url('http://example.com?foo=bar', 'FILE');                                                                                                                                              
  -- Spark: "?foo=bar"    Comet: "/?foo=bar"
                                                                                                                                                                                                       
  SELECT parse_url('http://example.com#fragment', 'FILE');                                                                                                                                             
  -- Spark: ""    Comet: "/"

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingspark

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions