You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "srinivasan-30 (via GitHub)" <gi...@apache.org> on 2026/07/21 14:26:59 UTC

[I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

srinivasan-30 opened a new issue, #50578:
URL: https://github.com/apache/arrow/issues/50578

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   When using Apache Arrow Flight SQL ODBC Driver against InfluxDB 3, dataset preview succeeds. However schema discovery fails because Bold Reports invokes:
    
   command.ExecuteReader(CommandBehavior.SchemaOnly)
    
   which results in:
    
   HY010 [Apache Arrow][Flight SQL] (100) Function sequence error
    
   Normal ExecuteReader() works successfully.
   Does the Metadata retrieval fully supported?
   Windows 
   64 bit driver
   Language code: C#
   Net core platform
   
   ### Component(s)
   
   Other, C#


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5049378442

   Hi @srinivasan-30, the bot automatically closed your issue because you marked C# as the component but this issue looks like a possible bug in the ODBC FlightSQL driver and not with arrow-dotnet. If that's the case, could you fill in more detail in your issue?
   
   - Version of the ODBC FlightSQL driver
   - Your dotnet version
   - A reproducible code example
   
   cc @alinaliBQ @justing-bq 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "alinaliBQ (via GitHub)" <gi...@apache.org>.
alinaliBQ commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5121688479

   > Should the implementation just always return SQL_NO_DATA since the driver doesn't support it?
   
   According to the table, the implementation should return `SQL_NO_DATA` when the statement is allocated, prepared, or executed. So yes it makes sense to always return `SQL_NO_DATA`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5097907817

   Hi @srinivasan-30, based on your driver version, it looks like you're using the Dremio version of the driver and not the one developed in the Arrow project. Can you try with https://github.com/apache/arrow/releases/download/apache-arrow-25.0.0/Apache-Arrow-Flight-SQL-ODBC-25.0.0-win64.msi? (You may have to work around Windows Defender to get the driver to load).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #50578: [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly)
URL: https://github.com/apache/arrow/issues/50578


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "srinivasan-30 (via GitHub)" <gi...@apache.org>.
srinivasan-30 commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5114316462

   Hi @amoeba ,
   
   The issue has been reproduced on your end. Could you please let us know when the fix will be merged into a release and when the setup containing the fix will be available for use?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5137984064

   Issue resolved by pull request 50700
   https://github.com/apache/arrow/pull/50700


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "srinivasan-30 (via GitHub)" <gi...@apache.org>.
srinivasan-30 commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5066659504

   Hi @amoeba ,
   
   Kindly can you reopen this issue.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5121729318

   Thanks @alinaliBQ. I'll finish up https://github.com/apache/arrow/pull/50700 and tag you for a review.
   
   @srinivasan-30: This might be able to go in a patch release which could be done in August but it might have to wait until later in the year. Because of the way this repo does releases, this component has to get released with everything else at once and it's not possible to release just an updated version of the driver. There will be nightly builds but the usual caveats would apply to using those.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "srinivasan-30 (via GitHub)" <gi...@apache.org>.
srinivasan-30 commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5091592965

   Hi @amoeba ,
   
   Please find  the gist link: https://gist.github.com/srinivasan-30/4b3ee7d6e4bfcece199092009d29fbcc .
   
   **Kindly replace the :**
   
   1. Update the connection string to use the Apache Arrow Flight SQL ODBC Driver configured in your environment.
   2. Replace the sample query with a valid InfluxDB query.
   3. Build and run the console application. 
   
   **Please find the environment details below.**
   
   1. Version of the Arrow Flight SQL ODBC driver : 0.9.7.1195
   2. Your dotnet version : 10.0
   3. Inflex db version : influxdb3-core-3.10.0-windows_amd64
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5071170618

   Hi @srinivasan-30, can you put the code here in the issue, in a gist, or in a repo so maintainers don't have to download a zip?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-6060489013

   Hi @srinivasan-30, this fix is in the 25.0.1 release and you can find the latest MSI at https://github.com/apache/arrow/releases/tag/apache-arrow-25.0.1. Let us know if the issue is or isn't fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5098126778

   I seem to be able to reproduce the issue on Windows but not on macOS with the Apache driver so that must be a place where the driver managers differ between platforms.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "alinaliBQ (via GitHub)" <gi...@apache.org>.
alinaliBQ commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5109741288

   > Does the Metadata retrieval fully supported?
   
   hi @srinivasan-30 the Apache driver hasn't been tested with metadata retrieval from C#, so there is a possibility that it is not fully supported. I agree with @amoeba that this might be caused by a driver manager difference between platforms, as macOS (iODBC) and Windows ODBC driver managers may have different sequence of ODBC API calls to the Apache driver.
   
   In case it might help, there are 2 possible places where the HY010 error could have been thrown:
   1. `SQLMoreResults` is a no-op and errors on HY010 if there is no open cursor. 
   https://github.com/apache/arrow/blob/deed9c0d99b33be112f9931ec92f4df65c75fc43/cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc#L790
   
   2. `SQLExecute` errors on HY010 if `SQLPrepare` hasn't been called first. The chance of driver manager not calling `SQLPrepare` first is small. 
   https://github.com/apache/arrow/blob/deed9c0d99b33be112f9931ec92f4df65c75fc43/cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc#L302
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba closed issue #50578: [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly)
URL: https://github.com/apache/arrow/issues/50578


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5111742444

   I reproduced this on my Windows machine and, with ODBC tracing turned on, I get,
   
   ```
   ...snip...
   OdbcRepro       599c-368	ENTER SQLMoreResults 
   		HSTMT               0x00000279C6A8E8E0
   
   OdbcRepro       599c-368	EXIT  SQLMoreResults  with return code -1 (SQL_ERROR)
   		HSTMT               0x00000279C6A8E8E0
   
   		DIAG [HY010] [Apache Arrow][Flight SQL] (100) Function sequence error (100) 
   ```
   
   So it looks like the call triggering the exception is `SQLMoreResults`.
   
   I'm new to this stuff so I had an LLM take a look and it pulled up https://learn.microsoft.com/en-us/sql/odbc/reference/appendixes/statement-transitions?view=sql-server-ver17#sqlmoreresults as a reference. From my reading of that, the Statement in this case is probably in the prepared state and so should always return `SQL_NO_DATA`. Should the implementation just always return `SQL_NO_DATA` since the driver doesn't support it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "srinivasan-30 (via GitHub)" <gi...@apache.org>.
srinivasan-30 commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5055605580

   Hi @amoeba ,
   
   Please find the details below.
   
   1. **Version of the Arrow Flight SQL ODBC  driver** : 0.9.7.1195
   2. **Your dotnet version** : 10.0
   3. **Inflex db version** : influxdb3-core-3.10.0-windows_amd64
   
   Reproducible Code Example :
   
   We have attached the core sample below. Please provide the connection string for the Arrow Flight SQL ODBC Driver and the corresponding InfluxDB query in the sample and execute.
   
   [ConsoleApp.zip](https://github.com/user-attachments/files/30296509/ConsoleApp.zip)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5035253369

   Thanks for your report! The C# implementation has moved to https://github.com/apache/arrow-dotnet.
   
   This issue has been closed automatically - please open a new issue there.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "srinivasan-30 (via GitHub)" <gi...@apache.org>.
srinivasan-30 commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5101494427

   Hi @amoeba ,
   
   We have installed the provided driver, but we are still facing the same error: HY010 [Apache Arrow][Flight SQL] (100) Function sequence error. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Flight SQL ODBC] HY010 Function sequence error during schema discovery using ExecuteReader(CommandBehavior.SchemaOnly) [arrow]

Posted by "srinivasan-30 (via GitHub)" <gi...@apache.org>.
srinivasan-30 commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-6053762296

   Hi @amoeba,
   
   Whether the above fix is moved in the public release.  If not kindly share the release date. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org