Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
1 vote
1 answer
208 views

When typing gsub(" ", "", gsub("\"", "", deparse(quote(2025-B3)))) the output is [1] "2025-B3" Typing gsub(" ", "", gsub(&...
Björn WALTHER's user avatar
0 votes
0 answers
71 views

New here. Beginner with Python and LibreOffice. Some experience with C#. OS: Win 11 LO: 25.8 I have been trying to learn how to create a LO extension to provide UDF's for use in LO Calc. I have dozens ...
AndyB's user avatar
  • 1
2 votes
1 answer
105 views

I ran the following query to retrieve data for a single investment ID: select *, getProductClass(InstrumentID, etf_option_mapper) as ProductClass from investor_pos where InvestorID = '7399000270' ...
HuaXian Tan's user avatar
0 votes
1 answer
214 views

I am applying a user defined function (UDF) to a polars dataframe using the map_batches function (c.p. https://docs.pola.rs/user-guide/expressions/user-defined-python-functions/#combining-multiple-...
Andi's user avatar
  • 5,167
0 votes
0 answers
20 views

I’m encountering an error when defining a query function in DolphinDB. Here’s my scenario: Table Definition: dt = 2025.01.01T01:01:51.100 2025.01.02T01:01:51.000 2025.01.03T04:01:51.900 sym = ["...
Shilin Wang's user avatar
1 vote
1 answer
128 views

I have following Code. It reads a pre-existing file for a ML model. I am trying to run it on databricks on multiple cases import numpy as np import joblib class WeightedEnsembleRegressor: "&...
user6386155's user avatar
0 votes
1 answer
57 views

This function: Function SheetIndex() As Long Dim oFunctionAccess As Object oFunctionAccess = CreateUnoService("com.sun.star.sheet.FunctionAccess") SheetIndex = oFunctionAccess....
Mario Palumbo's user avatar
0 votes
1 answer
89 views

When there are multiple cells using this UDF, they give results but they are recalculated endlessly and most of the time most of the cells give circular reference error (Err:522): Option Explicit ...
Mario Palumbo's user avatar
0 votes
1 answer
71 views

I have a dataframe that needs to be used row-wise for API calls. Therefore I implemented a UDF for it. It takes each row uses the data from that row to make an api call and stores an id from the ...
Bondgirl's user avatar
  • 115
1 vote
1 answer
73 views

I need to write a function to add a particular command/string of characters to an existing function. Consider this function: constraint = function(cov_matrix,max_variance){ function(x){ f = NULL g =...
SuperLeo's user avatar
  • 135
3 votes
1 answer
111 views

working in Windows 11 with PowerShell 7.5.1 (NOT Windows PowerShell) i have some functions and aliases defined in C:\Users\Jeff\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 here are the ...
vulcan_'s user avatar
  • 169
-6 votes
1 answer
107 views

I have an enormous list of new/replacement/cancel stock quotes (billions of rows) and I want to calculate the running best (lowest) ask at the time of each row. Cancels and replacements are ...
John Roberts's user avatar
  • 6,004
0 votes
1 answer
19 views

I need to maintain an auto-incrementing ID field for each stock as an identifier in DolphinDB's Reactive State Engine for real-time data processing. However, there are no relevant parameters in the ...
saki's user avatar
  • 319
3 votes
2 answers
94 views

I have a system where I need to identify different types of risk associated with entities. I have many large scripts for detecting different risk behaviours associated with entities, with some scripts ...
Alex Howard's user avatar
1 vote
1 answer
48 views

I am trying to add intellisense to my UDFs and I was advised to try excel-dna. It has me install Visual Studio and create a project. I followed the instructions here: https://excel-dna.net/docs/...
moisheweiss's user avatar
1 vote
1 answer
55 views

I have a PySpark UDF which when I try to apply to each row for one of the df columns and get a new column, I get a [Ljava.lang.Object;@7e44638d (different value after the @ for each row) Please see ...
MariaT's user avatar
  • 147
1 vote
1 answer
66 views

I've tried several strategies to force Snowflake to recognize that I'm only returning one row per input row, including: Aggregation with Min(), Max(), and Any_Value() Using LIMIT 1 Putting my logic ...
Kevin's user avatar
  • 11
1 vote
1 answer
86 views

I am new to Pyspark and I have created a pandas udf. The purpose of this udf is to accept a series and apply an ML model on it. I have data that has these columns: ID, models_name, prices, units_sold, ...
Fatima Arshad's user avatar
0 votes
0 answers
79 views

It appears that if an Excel VBA user-defined function makes use of a Characters object, the cell in which that function is used displays some part of that object while the VBA code is running, even if ...
dlh's user avatar
  • 559
0 votes
1 answer
174 views

I'm trying to pass a value from a CTE to my function (UDF). Unfortunately, it's not working. Here is the first variant: WITH fx_date_new AS ( SELECT CASE WHEN '2025-01-01' > ...
GFrost's user avatar
  • 1
0 votes
1 answer
40 views

I am currently working on a Hive Metastore to Unity Catalog migration in Databricks. As part of this process, I need to upgrade several components, including workflows and clusters. I would like ...
Shravan Shibu's user avatar
1 vote
0 answers
98 views

In Snowflake I'm trying to de-identify data stored in a JSON column based on configurations in a separate table. I created a custom SQL function DEIDENTIFY_JSON which uses a subquery to look up the de-...
Lonely Planeteer's user avatar
1 vote
2 answers
144 views

Background I wrote the below UDF to check whether a cell's contents is valid (i.e. if a cell's data validation is set to a list of A,B,C. Returns TRUE if the cell is "A", "B" or &...
Martin's user avatar
  • 424
0 votes
0 answers
55 views

Problem with minimal example The below minimal example does not run locally with databricks-connect==15.3 but does run within databricks workspace. main.py from databricks.connect import ...
Tobias's user avatar
  • 1
0 votes
1 answer
205 views

I have set up a Lambda formula that calculates interpolated values from a given set of coordinates similar to existing trend/linest/forecast functions handles non consecutive inputs as well as errors ...
Emmanuel D's user avatar
1 vote
1 answer
34 views

I'm learning to write python to create scripts to automate stuff for DD. And I'm positive that there most likely is a built in solution for this. I have certain functions from external scripts that I ...
skrapsan's user avatar
-1 votes
1 answer
89 views

Iam currently working on a duckdb udf using pyarrow compute. Works great so far. Now i need to clip a value between 0 and 1, e.g minimal example: import numpy as np import pyarrow as pa import pyarrow....
user2148566's user avatar
0 votes
1 answer
24 views

Creating function to extract data from views, whose name prefix is passed as function parameter: CREATE FUNCTION t (char(2)) RETURNS text AS $$ DECLARE view_name TEXT; BEGIN view_name := CONCAT($1, '...
ziu fas's user avatar
  • 31
3 votes
2 answers
61 views

PostgreSQL syntax error when using CONCAT in user defined function. Using DbVisualizer as SQL client. CREATE FUNCTION t() RETURNS TEXT AS ' SELECT CONCAT('some', '_text') ; ' LANGUAGE plpgsql; [Code:...
ziu fas's user avatar
  • 31
0 votes
0 answers
30 views

Is it possible to set field on the UDF instance in driver and use it by the executors when call() is invoked? public class SomeUDF implements UDF2<String, String, String> { private String ...
YerivanLazerev's user avatar
1 vote
0 answers
113 views

Not able to get log4j logs from executor that invoked in UDF when running PySprak in Databricks. in Databricks webportal I created Compute cluster, in the Libraries tab I add jar with class ...
YerivanLazerev's user avatar
1 vote
1 answer
76 views

In custom functions in PostgreSQL, I can access the NEW object to retrieve the values of specific columns, for example: NEW.description NEW.city Essentially, this is a static reference at the code-...
alexanoid's user avatar
  • 26.1k
0 votes
1 answer
27 views

I am trying to get a sort of "running count" from data in a Apache Derby database. E.g. sample selected data Part1 Part2 d1 a1 d1 a2 d2 a1 d2 a2 I would like to write a SQL statement which ...
centic's user avatar
  • 16k
3 votes
1 answer
393 views

I'm looking for a way to apply a user defined function taking a dictionary, and not a tuple, of arguments as input when using pl.DataFrame.map_rows. Trying something like df.map_rows(lambda x: udf({k:...
paulduf's user avatar
  • 320
0 votes
0 answers
91 views

Background I created a Snowflake UDTF (user-defined table function) GET_MEDICATION that accepts language_key as input argument to return the data in the language_key specified while calling it. Query: ...
Rahul Bhosale's user avatar
0 votes
1 answer
72 views

I Have Use case for Aerospike where I have multiple Records like: +--------+---------+ | PK | signal | +--------+---------+ | 123451 | 1 | | 102221 | 1.0816 | +--------+---------+ I have ...
Neil Nandi's user avatar
0 votes
0 answers
39 views

I want to create a UDF for PySpark based on some Java code. The UDF signature is quite similar to regex match. The first argument will come from data frames, while the second will be the same. The ...
Yaroslav Kishchenko's user avatar
0 votes
0 answers
109 views

I’m trying to define a new type of division such that 1/0 doesn’t raise a ZeroDivisionError, instead, it returns a new object called infty(0), which is defined as follow: class infty: def ...
Mr. W's user avatar
  • 275
0 votes
1 answer
129 views

I am creating an UDF expecting to be deterministic, i.e., it should give same result for same input. But it is not working as expected when the table is updated. Step #1. Create a table and insert few ...
Iniyavan's user avatar
  • 113
0 votes
0 answers
78 views

I am not good at databases and SQL and have not worked on complex tasks. I will try to explain as best as I can. Thanks for your help. We are performing proof-of-concept (POC) and we are facing some ...
Rushikesh Yadav's user avatar
0 votes
1 answer
136 views

I'm working on a data engineering project that processes data from multiple sources using Polars in Python and Redshift as a data warehouse. I need a robust strategy for keeping Python Polars ...
Elis Evans's user avatar
-1 votes
1 answer
54 views

I am trying to create a function that will return a label based on a score and version number in a look up table so i have a look up table label version min max High 1 7 10 Med 1 3 6 Low 1 0 2 High 2 ...
em456's user avatar
  • 441
1 vote
1 answer
76 views

Is it possible to allow Excel users to stop MsgBox messages from VBA error handlers popping up and also re-allowing MsgBox messages? Or is it possible to programmatically control their frequency, for ...
pps's user avatar
  • 58
1 vote
0 answers
71 views

Trying to implemented syscall in kernel space and wrapper in glibc so I can call from userspace. When I call the function call in user program it says "Function not implemented". I have ...
prashanthlinganna's user avatar
1 vote
1 answer
162 views

I am using following xml request to get Vouchers from Tally and gives me below output. <ENVELOPE> <HEADER> <VERSION>1</VERSION> <TALLYREQUEST>Export&...
Aslam Bari's user avatar
0 votes
1 answer
71 views

How can I construct simple LibreOffice basic wrapper, that could read an arbitrary array from LO calc spreadsheet to preform some python function on it, say add all the values? Here is example of some ...
Alex Alex's user avatar
  • 261
0 votes
2 answers
122 views

I am trying to scale the distance value returned from the 'nearest_edges' function(from the OSMNX library) on a huge dataset using the lat and long columns as my inputs to the creation of my ...
William Fabyan's user avatar
0 votes
0 answers
56 views

I’m currently trying to migrate some functions from postgres to Snowflake and having some trouble, I’m hoping someone can give some advice. Within postgres I currently have a conversion function that ...
p1nnz's user avatar
  • 136
0 votes
1 answer
312 views

Is it possible to call a UDF in Snowflake using a view column as an input parameter? I have a column with multiple dates delimited by | and I want to check if at least one of those dates falls between ...
Foink's user avatar
  • 1
0 votes
1 answer
130 views

I am trying to utilize Scala udfs from pyspark and running into 'pyspark.sql.utils.AnalysisException: UDF class doesn't implement any UDF interface' error My scala code looks something like this ...
BadBoy777's user avatar
  • 155

1
2 3 4 5
111